问题描述:导入项目时候[email protected]无法引入

出错原因:jar包

与之前得springboot 相比两个springboot工程的依赖版本不一致 

较新版的Spring Boot取消了@SpringApplicationConfiguration这个注解,用@SpringBootTest就可以了

解决方案:

springboot包中找不到相应的类,或者冲突。导致的需要删掉仓库(repository\org\springframework\boot )目录下的spring-boot-autoconfigure文件夹即可,然后在工程中maven -> update project即可

 

 

 

 

 

 

 

 

导入项目时候[email protected]无法引入

删除时,再导入果然就不再报错啦

 

 

 

 

导入项目时候[email protected]无法引入

 

问题依然没有解决

 

于是寻找解决方案二

较新版的Spring Boot取消了@SpringApplicationConfiguration这个注解,用@SpringBootTest就可以了

 

导入项目时候[email protected]无法引入

相关文章:

  • 2021-04-06
  • 2021-06-30
  • 2021-09-12
  • 2021-09-20
  • 2021-12-03
  • 2021-04-27
  • 2022-12-23
猜你喜欢
  • 2021-12-27
  • 2021-07-03
  • 2021-10-06
  • 2021-07-29
  • 2021-07-27
  • 2021-06-12
  • 2021-06-15
相关资源
相似解决方案