@Override is not allowed when implementing interface method
2016-08-08 16:01
387 查看
IDEA导入项目后出现@Override错误,虽然不影响编译,但是看起来不和谐。
![](https://img-blog.csdn.net/20160808155447035?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
对于这个问题,网上有两种解决方案:
1、File-->Project Structure...-->Module-->选中模型-->Language Level,选择6(网上这种方案较多)
![](https://img-blog.csdn.net/20160808155936620?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
2、pom文件中配置maven-compiler-plugin(个人认为这种方案更正确,可以避免每个人都要按照解决方案一设置一次)
对于这个问题,网上有两种解决方案:
1、File-->Project Structure...-->Module-->选中模型-->Language Level,选择6(网上这种方案较多)
2、pom文件中配置maven-compiler-plugin(个人认为这种方案更正确,可以避免每个人都要按照解决方案一设置一次)
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin>
相关文章推荐
- maven打包错误: -source 1.5 中不支持 diamond 运算符以及@Override is not allowed when implementing interface method
- Idea @Override is not allowed when implementing interface method
- idea导入maven项目 报“Override is not allowed when implementing interface method”
- @Override is not allowed when implementing interface method
- idea @Override is not allowed when implementing interface method
- @Override is not allowed when implementing interface method
- @override is not allowed when implementing interface method
- idea @Override is not allowed when implementing interface method
- IDEA提示@Override is not allowed when implementing interface method
- IntelliJ IDEA 报错:@Override is not allowed when implementing interface method
- idea @Override is not allowed when implementing interface method
- 【错误记录】@Override is not allowed when implementing interface method解决
- IDEA @Override is not allowed when implementing interface method
- @Override is not allowed when implementing interface method
- @Override is not allowed when implementing interface method
- @Override is not allowed when implementing interface method
- idea @Override is not allowed when implementing interface method
- Intellij Idea @Override is not allowed when implementing interface method
- @Override is not allowed when implementing interface method
- 一些错误和异常的解决方法02_@Override is not allowed when implementing interface method