解决Correct the classpath of your application so that it contains compatible versions

  • 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包。

解决Correct the classpath of your application so that it contains compatible versions_第1张图片

删掉一个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重新构建

你可能感兴趣的:(spring,boot,spring,java)