使用 @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。
2、点击坐上角蓝色字体,配置项目里的jdk版本,在弹框中选择项目
3、在项目中的版本选择1.7
点击OK