• springboot启动失败
  • 报错Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.web.servlet.handler.AbstractHandlerMethodMapping and org.springframework.web.method.HandlerMethod

排查发现:pom依赖同时引用了两个不同版本的web包。

在这里插入图片描述

删掉一个web依赖重新构建以后问题直接解决。


Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.web.servlet.handler.AbstractHandlerMethodMapping and org.springframework.web.method.HandlerMethod

某个类构建失败,删掉target重新构建

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐