记一次java工程编译问题

今天在导入一个javaweb工程时出现了:
The method xx() of type ClazzBizImpl must override a superclass method,是在@Override方法上出现的:

错误截图
  • 解决思路
    JDK 版本过低不支持 @Override 注解导致的,提高版本到 1.5 之后(不含1.5)就可以了。
  • 解决办法:
    一、因为你的Compiler 是jdk1.5,只要把它改为 1.6
    方法:
    1.window ->preferences... -> java -> Compiler 右侧中Compiler compliance level 改为 1.6
    二、 把项目的JRE变成6.0的
    项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compiler compliance level 修改版本为1.6

你可能感兴趣的:(记一次java工程编译问题)