在做Springboot入门案例(将配置文件的数据注入Bean中),出现错误:
java.lang.NoSuchMethodError: 'void org.springframework.core.annotation.AnnotationUtils.clearCache()'
解决方案:maven中 spring jar包版本号不统一,改成一致就可以了
其实,parent指定了版本,dependency中不用再指定。
在做Springboot入门案例(将配置文件的数据注入Bean中),出现错误:
java.lang.NoSuchMethodError: 'void org.springframework.core.annotation.AnnotationUtils.clearCache()'
解决方案:maven中 spring jar包版本号不统一,改成一致就可以了
其实,parent指定了版本,dependency中不用再指定。