-
详情:https://blog.csdn.net/duchao123duchao/article/details/71480106
-
也可以通过修改 other settings 设置 默认 jdk
-
打开File -->other settings
-
点击 Settings for New Projects
-
点击Structure for New Projects
-
在新项目中 还是要添加版本信息的
<properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties>
-
当然, https://blog.csdn.net/duchao123duchao/article/details/71480106 该网站的前几步骤还是要做的。
<profiles> <id>jdk-1.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> </profiles>
-
Warning:java: 目标值1.5已过时, 将在未来所有发行版中删除
最新推荐文章于 2022-12-03 14:32:34 发布