建立第一个SpringBoot小列子(碰到的错误)

当加入@SpringBootApplication注解时,无法得到解析

错误提示:SpringBootApplication cannot be resolved to a type

错误原因是因为springboot的包冲突了所致。

需要删掉本地maven仓库 repository文件夹下的orgspringframeworkoot 目录下的spring-boot-autoconfigure 文件夹,

然后在工程中maven -> update project

学着把生活的苦酒当成饮料一样慢慢品尝, 不论生命经过多少委屈和艰辛, 我们总是以一个朝气蓬勃的面孔, 醒来在每一个早上。
原文地址:https://www.cnblogs.com/yhm9/p/10423227.html