在搭建maven項目時若是項目識別不了 @override java
相似The method *** of type *** must override a superclass method maven
那麼多是你的java compiler 版本小於1.6,由於1.6以前的版本不識別@override。 ide
方法一:只須要在pom文件中加上下面的plugin就能夠指定項目使用的java 編譯版本了。 spa
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin> get
方法二:手動將window->preferences->java-compiler中的Compiler compliance level修改成6.0。