前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >@Override is not allowed when implementing interface method

@Override is not allowed when implementing interface method

作者头像
林老师带你学编程
发布2019-05-26 07:01:10
7030
发布2019-05-26 07:01:10
举报
文章被收录于专栏:强仔仔强仔仔

IDEA导入项目后出现@Override错误,虽然不影响编译,但是看起来不和谐。

对于这个问题,网上有两种解决方案:

1、File-->Project Structure...-->Module-->选中模型-->Language Level,选择6(网上这种方案较多)

2、pom文件中配置maven-compiler-plugin(个人认为这种方案更正确,可以避免每个人都要按照解决方案一设置一次)

  1. <plugin>
  2. <groupId>org.apache.maven.plugins</groupId>
  3. <artifactId>maven-compiler-plugin</artifactId>
  4. <version>3.2</version>
  5. <configuration>
  6. <source>1.6</source>
  7. <target>1.6</target>
  8. </configuration>
  9. </plugin>
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018年07月06日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档