wordpress 游戲模版seo輿情優(yōu)化
遇到這個提示一般是在pom.xml中已經指定了構建的Java版本環(huán)境是11例如(此時添加了build插件的情況下雖然不能直接運行代碼但是maven是可以正常打包構建):
<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><configuration><source>11</source><target>11</target></configuration></plugin></plugins>
</build><properties><maven.compiler.source>11</maven.compiler.source><maven.compiler.target>11</maven.compiler.target><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
但是idea中的jdk版本配置不正確,主要有以下幾處位置:
1、“Settings” -> “Build, Execution, Deployment” -> “Compiler” -> “Java Compiler”,設置"Target bytecode version"為11
2、“File” -> “Project Structure” -> “Project Settings” -> “Project”,檢查"Project language level"是否設置為"11 - Local variable type inference"
3、“File” -> “Project Structure” -> “Project Settings” -> “Modules”,檢查"Project language level"是否設置為"11 - Local variable type inference"
Dependencies中也需要修改,這個一般容易被忽略: