启动springboot 项目报如下错误:
java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.clearCache()V
原因为: maven中的 spring-context的版本不一致,存在一个5.2.3 和 5.0.4
改为一致即可
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.0.4.RELEASE</version>
</dependency>