直接在maven的pom里给springboot的打包插件引入一下参数就行
<includeSystemScope>true</includeSystemScope>
总体是这样的
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>