使用Eclipse开发Java项目时,在@Override 出现以下错误:
The method * of type * must override a superclass method
是因为你的Compiler是jdk5,(5不支持@Override等形式的批注)只要把它改为6就可以了。

方法:右击项目 选择Properties , 选择Java Compiler,将Compiler compliance level修改为1.7即可
@Override must override a superclass method 解决方法

相关文章:

  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-01-16
猜你喜欢
  • 2021-09-28
  • 2022-02-13
  • 2022-02-07
  • 2021-08-31
  • 2021-06-22
相关资源
相似解决方案