问题描述
构建spring-boot项目时,由于idea 2019.2版本配置默认maven无效,自动使用了idea自带的maven 3构建了项目,后来自行配置了系统自带的maven后,spring-boot-maven-plugin开始报红,反复sync了多次,其他包都能找到,就是它一直找不到。
解决方案
pom添加一下依赖即可
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.5.0</version>
</dependency>