异常信息
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.plugin.core.support.AbstractTypeAwareSupport$BeansOfTypeTargetSource.<init>(AbstractTypeAwareSupport.java:135)
The following method did not exist:
'void org.springframework.util.Assert.notNull(java.lang.Object)'
The calling method's class, org.springframework.plugin.core.support.AbstractTypeAwareSupport$BeansOfTypeTargetSource, was loaded from the following location:
jar:file:/C:/Users/Administrator/.m2/repository/org/springframework/plugin/spring-plugin-core/1.2.0.RELEASE/spring-plugin-core-1.2.0.RELEASE.jar!/org/springframework/plugin/core/support/AbstractTypeAwareSupport$BeansOfTypeTargetSource.class
The called method's class, org.springframework.util.Assert, is available from the following locations:
jar:file:/C:/Users/Administrator/.m2/repository/org/springframework/spring-core/6.1.8/spring-core-6.1.8.jar!/org/springframework/util/Assert.class
The called method's class hierarchy was loaded from the following locations:
org.springframework.util.Assert: file:/C:/Users/Administrator/.m2/repository/org/springframework/spring-core/6.1.8/spring-core-6.1.8.jar
Action:
Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.plugin.core.support.AbstractTypeAwareSupport$BeansOfTypeTargetSource and org.springframework.util.Assert
- 检查
pom.xml
文件中的依赖版本。 - 更新
spring-plugin-core
和spring-core
到最新稳定版本。
最终升级swagger相关依赖解决。