大佬教程收集整理的这篇文章主要介绍了SpringBoot项目启动报错An attempt was made to call a method that does not exist. 如何解决,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
*************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: org.springframework.context.annotation.AnnotationConfigUtils.processCommonDefinitionAnnotations(AnnotationConfigUtils.java:259) The following method did not exist: org.springframework.beans.factory.annotation.AnnotatedBeanDefinition.setRole(I)V The method's class, org.springframework.beans.factory.annotation.AnnotatedBeanDefinition, is available from the following locations: jar:file:/D:/Java/maven/gao_repository/repository/org/springframework/spring-beans/5.0.9.RELEASE/spring-beans-5.0.9.RELEASE.jar!/org/springframework/beans/factory/annotation/AnnotatedBeanDefinition.class jar:file:/D:/Java/maven/gao_repository/repository/org/apache/activemq/activemq-all/5.14.0/activemq-all-5.14.0.jar!/org/springframework/beans/factory/annotation/AnnotatedBeanDefinition.class It was loaded from the following location: file:/D:/Java/maven/gao_repository/repository/org/springframework/spring-beans/5.0.9.RELEASE/spring-beans-5.0.9.RELEASE.jar Action: Correct the classpath of your application so that it contains a single, compatible version of org.springframework.beans.factory.annotation.AnnotatedBeanDefinition出现这种情况一般都是jar包依赖问题(有可能父子依赖版本不一致造成的),jar包冲突或者jar包的版本有问题,你可以这样操作
maven插件右击子项目,再点击 show dependenices,如下图,1查看冲突地方,2依赖图放大.查看哪些jar包有冲突,解决冲突
以上是大佬教程为你收集整理的SpringBoot项目启动报错An attempt was made to call a method that does not exist. 如何解决全部内容,希望文章能够帮你解决SpringBoot项目启动报错An attempt was made to call a method that does not exist. 如何解决所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。