参考了网上其他人的经验(https://blog.csdn.net/weixin_42575653/article/details/81164798),错误原因是因为springboot的包冲突了所致。需要删掉 repository\org\springframework\boot 目录下的spring-boot-autoconfigure 文件夹,然后在工程中maven -> update project
SpringBootApplication cannot be resolved to a type
猜你喜欢
转载自blog.csdn.net/zhoutao2/article/details/88072794
今日推荐
周排行