我是靠谱客的博主 拼搏期待,这篇文章主要介绍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内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复