最佳答案
您可以在 pom 中使用它:
( https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html )
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
关于java - IntelliJ 中的目标字节码始终回落至 1.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34092605/