Spring Boot的@SpringBootApplication无法引入的问题


转自:https://blog.csdn.net/cckevincyh/article/details/78962002

今天搭建了springboot,一开始遇到了一个问题,在自己创建的HelloApplication中,@SpringBootApplication无法被解析引入。

 

经过查阅资料得到了解决方法: 
应该是springboot的包冲突了所致。需要删掉 repository\org\springframework\boot 目录下的spring-boot-autoconfigure 文件夹即可,然后在工程中maven -> update project即可

 

 

 

stackoverflow链接: 
https://stackoverflow.com/questions/41668819/springbootapplication-cannot-be-resolved-to-a-type-in-sts#

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/cckevincyh/article/details/78962002

经过查阅资料得到了解决方法: 
应该是springboot的包冲突了所致。需要删掉 repository\org\springframework\boot 目录下的spring-boot-autoconfigure 文件夹即可,然后在工程中maven -> update project即可

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM