java.lang.NoSuchMethodError: AbstractHandlerMapping.obtainApplicationContext() 客官°小女子只卖身不卖艺 2021-12-01 15:38 312阅读 0赞 异常详情: **Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.springframework.web.servlet.handler.AbstractHandlerMapping.obtainApplicationContext()Lorg/springframework/context/ApplicationContext;** 参考https://blog.csdn.net/u012527870/article/details/81843504,找到原因在于spring的jar包版本冲突 解决方案: 1. 将该项目依赖的spring版本改为4.3.18 2. 在该项目中引入activemq-all依赖时,排除掉spring 原文链接:[搭建spring项目,无法创建RequestMappingHandlerMapping异常][spring_RequestMappingHandlerMapping] [spring_RequestMappingHandlerMapping]: https://www.cnblogs.com/dubhlinn/p/10364831.html
还没有评论,来说两句吧...