IDEA报错“Annotations are not supported at lanauaae level1.3“的处理

IDEA报错“Annotations are not supported at lanauaae level1.3“的处理

一、问题截图

IDEA报错“Annotations are not supported at lanauaae level1.3“的处理

(接口的实现类语法完全正确,IDEA编辑器却对注解报错)

二、解决方法

  1. File–>Project Structure或者按快捷键Ctrl+Shift+Alt+S
    IDEA报错“Annotations are not supported at lanauaae level1.3“的处理
  2. 点击更改项目默认的注解语言IDEA报错“Annotations are not supported at lanauaae level1.3“的处理
  3. 问题解决成功截图:IDEA报错“Annotations are not supported at lanauaae level1.3“的处理

三、问题原因

IDEA的注解语言和当前JDK的不相匹配!