问题描述:导入项目时候[email protected]无法引入
出错原因:jar包
与之前得springboot 相比两个springboot工程的依赖版本不一致
较新版的Spring Boot取消了@SpringApplicationConfiguration这个注解,用@SpringBootTest就可以了
解决方案:
springboot包中找不到相应的类,或者冲突。导致的需要删掉仓库(repository\org\springframework\boot )目录下的spring-boot-autoconfigure文件夹即可,然后在工程中maven -> update project即可
删除时,再导入果然就不再报错啦
问题依然没有解决
于是寻找解决方案二
较新版的Spring Boot取消了@SpringApplicationConfiguration这个注解,用@SpringBootTest就可以了