在对spring boot项目进行打包发布的时候发现其它spring boot项目服务真正引用使用该spring boot包中的类
需对打包插件做如下修改:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
spring boot 中默认为:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
标签:spring,boot,1.8,maven,org,打包 From: https://blog.51cto.com/u_14671216/6397690