maven+spring整合activitymq-all启动报错

错误信息:

[html]  view plain  copy
  1. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping':   
  2. Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:   
  3. org.springframework.core.annotation.AnnotatedElementUtils.hasAnnotation(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Z  

我的maven工程里的spring版本是 4.3.7.RELEASE  ,activitymq-all版本是 5.13.0

最后发现是activemq-all的问题,它里面包含了spring,与导入的4.3.7.RELEASE发生冲突



把activitymq-all 改成 activitymq-spring 就好了

猜你喜欢

转载自blog.csdn.net/zzy413341422/article/details/80523797