使用 @Override 出现错误:The method getAll() of type CategoryServiceImpl must override a superclass method

要是因为你的Compiler是jdk5,(5不支持@Override等形式的批注)只要把它改为更高版本的就可以了。
方法:将window->preferences->java-compiler中的Compiler compliance level修改为1.7。


1、将window->preferences->java-compiler中的Compiler compliance level修改为1.7。

使用 @Override 出现错误:The method getAll() of type CategoryServiceImpl must override a superclass method

2、点击坐上角蓝色字体,配置项目里的jdk版本,在弹框中选择项目

使用 @Override 出现错误:The method getAll() of type CategoryServiceImpl must override a superclass method

3、在项目中的版本选择1.7

使用 @Override 出现错误:The method getAll() of type CategoryServiceImpl must override a superclass method

点击OK


相关文章:

  • 2021-09-20
  • 2021-09-28
  • 2021-10-24
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-05-20
猜你喜欢
  • 2021-06-22
  • 2021-10-26
  • 2021-06-29
  • 2021-03-31
  • 2022-12-23
相关资源
相似解决方案