场景

在IDEA中新建SpringBoot项目,后启动项目时提示:

Error:(3, 32) java: 程序包org.springframework.boot不存在

SpringBoot启动项目时提示:Error:(3, 32) java: 程序包org.springframework.boot不存在_java

 

实现

将pom.xml中parent依赖版本降低,这里改为2.1.6,然后在右边Maven面板中点击Reimport All Maven  Projects

SpringBoot启动项目时提示:Error:(3, 32) java: 程序包org.springframework.boot不存在_spring_02