吐槽下网上一大帮抄袭的文章,写的人写了个错误方案,后面抄的更不用说了,误人子弟啊;
解决方案很简单,只要在POM文件中加一句<includeSystemScope>true</includeSystemScope>就可以了,easy;
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>