困扰了我半天问题解决了,发现是这个 <goal>repackage</goal>起的作用
原文链接: https://blog.csdn.net/qq_18769269/article/details/83095012
在pom文件中,添加如下即可<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<plugin/>
网友评论