启动spring boot报错

来源:2-7 创建Web方法测试Swagger

慕沐2173931

2024-05-02

运行之后报这个错要怎么解决
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:/D:/Maven/maven/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:/D:/Maven/maven/repository/org/springframework/spring-core/6.1.6/spring-core-6.1.6.jar!/org/springframework/util/Assert.class

The called method’s class hierarchy was loaded from the following locations:

org.springframework.util.Assert: file:/D:/Maven/maven/repository/org/springframework/spring-core/6.1.6/spring-core-6.1.6.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

Process finished with exit code 0

写回答

1回答

阿阳2017

2025-03-11

我也是同样报错

0
0

SpringBoot 在线协同办公小程序开发 全栈式项目实战

未来趋势型业务 + 前后端综合技术栈 + 惊艳的细节打磨

1798 学习 · 1915 问题

查看课程