The method of type serviceimpl must override a superclass method解决方式

如果你用的是eclipse

在使用 @Override 时出现以下错误信息: 

The method of type serviceimpl must override a superclass method

那是因为你的Compiler 是jdk1.5,只要把它改为 1.6就可以了 


方法:

第一步: 

1. window ->preferences... -> java -> Compiler 

2. Compiler compliance level : 1.6

3.Apply 

4. ok  

5.完成 






第二步

把项目的JRE变成6.0的
项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compiler compliance level 修改版本为1.6








你可能感兴趣的:(报错总结)