我是靠谱客的博主 拼搏期待,最近开发中收集的这篇文章主要介绍springboot启动时报:An attempt was made to call a method that does not exist,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
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.ConfigurationClassUtils.checkConfigurationClassCandidate(ConfigurationClassUtils.java:108)
The following method did not exist:
org.springframework.core.type.AnnotationMetadata.introspect(Ljava/lang/Class;)Lorg/springframework/core/type/AnnotationMetadata;
The method's class, org.springframework.core.type.AnnotationMetadata, is available from the following locations:
jar:file:/D:/chengxuruanjian/apache-maven-3.6.3/repository/org/springframework/spring-core/5.1.9.RELEASE/spring-core-5.1.9.RELEASE.jar!/org/springframework/core/type/AnnotationMetadata.class
It was loaded from the following location:
file:/D:/chengxuruanjian/apache-maven-3.6.3/repository/org/springframework/spring-core/5.1.9.RELEASE/spring-core-5.1.9.RELEASE.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of org.springframework.core.type.AnnotationMetadata
Process finished with exit code 1
启动时报这个错误,肯定是springboot的版本和依赖的版本对不上,只需要把依赖的版本改成和springboot相同的版本一样就行了。
最后
以上就是拼搏期待为你收集整理的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所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复