IDEA项目编译时报:Warning:java: 源值1.5已过时, 将在未来所有发行版中删除,解决方案!
一、 问题展示二、问题原因IDEA工具如果不配置,默认会将源代码JDK版本设置为1.5,目标代码JDK版本设置为1.5。三、解决方法第一步,配置项目POM文件,新增:<properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </pro
原创
2020-07-21 18:15:31 ·
1861 阅读 ·
1 评论