版权声明:本文为CSDN原创投稿文章,转载请标明原创地址! https://blog.csdn.net/qq_27046951/article/details/82888177
因为使用parent工程来统一管理jar包,所以我们的子工程是继承父工程!
所以没有继承spring-boot-starter-parent这个parent pom!而是引入spring-boot-starter-parent的依赖,导致spring-boot-maven-plugin的配置项丢失!
解决:补全spring-boot-maven-plugin
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.9.RELEASE</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>