0
点赞
收藏
分享

微信扫一扫

问题解决:IDEA自动重置Language Level和JavaCompiler版本

江南北 2022-01-31 阅读 55


问题:Maven项目总是自动调整Language Level,导致一些代码不兼容

问题解决:IDEA自动重置Language Level和JavaCompiler版本_maven

解决:引入插件,设置上版本号,可自行修改。

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>



举报

相关推荐

0 条评论