新建maven项目默认使用jdk1.8
程序员文章站
2022-02-06 11:31:36
...
在maven conf/settings.xml 中添加内容<profile>
<profiles>
<profile>
<id>jdk1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
</profiles>
下一篇: JavaScript数据类型解析