在pom文件中添加如下插件配置:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
<fork>true</fork> 用于明确表示编译版本配置有效,在spring-boot-maven-plugin中configuration下的includeSystemScope属性指定为true即可了。
本文介绍如何在Maven项目中配置spring-boot-maven-plugin插件,通过设置<fork>true</fork>和<includeSystemScope>true</includeSystemScope>来确保编译版本配置有效。
3万+

被折叠的 条评论
为什么被折叠?



