spring-boot-maven-plugin 报红
我用的软件是IDA,在pom.xml文件中,遇到<artifactId>spring-boot-maven-plugin</artifactId>这一行一直是红色,提示没有找到,解决方法 <version>2.2.2.RELEASE</version> 加一个版本号。就解决了。
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.2.2.RELEASE</version>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration>
</plugin>
</plugins>
</build>
或者保持和parent的版本一致
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.7.0</version>
下一篇:
PageHelper分页简单使用教程
