annotations are not supported at this language level解决办法
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了annotations are not supported at this language level解决办法相关的知识,希望对你有一定的参考价值。
写spring helloController.clss ,@Controller 报错
IDEA下报错:annotations are not supported at this language level
解决:
1. File -> Project Structure -> Project -> Project Language Level 选择“8 Lamdas Type Annotations etc”
2. 如果没有改选项请先安装和配置JDK1.8
3. 如果为Maven项目,请将pom.xml中maven-compiler-plugin中<configuration>中的<source>和<target>配置为1.8
以上是关于annotations are not supported at this language level解决办法的主要内容,如果未能解决你的问题,请参考以下文章
InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClas...(示例代码
android studio InnerClass annotations are missing corresponding EnclosingMember annotations. Such In
You are not late! You are not early!
React项目报错:Error: Objects are not valid as a React child
android -------- 混淆打包报错(warning - InnerClass annotations are missing corresponding EnclosingMember a