6.3-解决Idea实现接口没有@Override的问题

解决方法:java

language level 肯定在1.6即以上,OK 便可。apache

如果在解决Override问题后出现以下异常:maven

Error:java: Compilation failed: internal java compiler error

则在settings中以下页面设置:ide

我我的尝试了一下,Target bytecode version 肯定在1.6即以上,也是没问题的。ui

 

可是,项目刷新后仍出现问题,发现版本又变回1.5的了,如何结果这种状况的发生:spa

在项目的pom.xml中code

<build>
   <plugins>
      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <version>2.3.2</version>
         <configuration>
            <source>1.8</source>
            <target>1.8</target>
         </configuration>
      </plugin>
   </plugins>
</build>
相关文章
相关标签/搜索