相关推荐recommended
解决Correct the classpath of your application so that it contains compatible versions
作者:mmseoamin日期:2024-01-18
  • 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重新构建