添加 maven-compiler-plugin 与编译参数 -release, 解决 ByteBuffer 方法在旧版本jdk中找不到的问题
This commit is contained in:
parent
07af183e7f
commit
f6d5c648b2
14
pom.xml
14
pom.xml
|
|
@ -103,6 +103,20 @@
|
|||
|
||||
<build>
|
||||
<plugins>
|
||||
<!--
|
||||
添加 -release 参数,生成支持旧版本JDK的 jar 包, see:
|
||||
https://www.baeldung.com/maven-java-version#java9
|
||||
-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.10.1</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
<release>8</release>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
|
|
|
|||
Loading…
Reference in New Issue