手机网站开发标准,六种常见的网络广告类型,骑行网站模板,又拍云 wordpress插件转载自 IntelliJ IDEA 源值1.5已过时#xff0c;将在未来所有版本中删除
原因#xff1a;
IDEA默认把项目的源代码版本设置为jdk1.5#xff0c;目标代码设置为jdk1.5
解决方案#xff1a; 1修改Maven的Settings.xml文件添加如下内容 profileidjdk-1.8将在未来所有版本中删除
原因
IDEA默认把项目的源代码版本设置为jdk1.5目标代码设置为jdk1.5
解决方案 1修改Maven的Settings.xml文件添加如下内容 profileidjdk-1.8/idactivationactiveByDefaulttrue/activeByDefaultjdk1.8/jdk/activationpropertiesmaven.compiler.source1.8/maven.compiler.sourcemaven.compiler.target1.8/maven.compiler.targetmaven.compiler.compilerVersion1.8/maven.compiler.compilerVersion/properties
/profile2在项目的pom.xml文件中添加 propertiesmaven.compiler.source1.8/maven.compiler.sourcemaven.compiler.target1.8/maven.compiler.target
/properties3打开项目配置设置Modules的Language Level为”8” 最后按”CtrlAltS”打开设置搜索”Java Compiler”将默认jdk和当前modual的jdk版本切换为1.8即可