使用 @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.
相关文章
相关标签/搜索