The method getNotCompleteOrder(ResultBean) of type HomeServiceImpl must override a superclass method
来源:互联网 发布:聚划算与淘宝的关系 编辑:程序博客网 时间:2024/05/21 06:20
解决web工程出现@Override的错误
问题描述
在eclipse或myeclipse工具环境下,指定jdk和java compiler 版本之后,代码中仍出现重写相关的错误,提示需要删除注解,如下
@Override 错误
@Override 重写父类函数时报错误
错误内容:The method getNotCompleteOrder(ResultBean) of type HomeServiceImpl must override a superclass method
提示:Remove ‘@Override’ annotation
问题出现的原因
重写父类函数的注解,在jdk1.5以下,是不能有的,直接重写函数即可。
jdk1.6之后,修复了这个BUG,此类注解可以使用。
解决步骤
- 指定jdk和java compiler
必须要设置jdk和java compiler的版本,相互对应,以myeclipse为例,如图
- 重点来了!指定java project facts版本
默认设置是最低1.5,必须改称jdk 和 java compiler版本一致!
如图
以上,即可解决问题。
阅读全文
0 0
- The method getNotCompleteOrder(ResultBean) of type HomeServiceImpl must override a superclass method
- The method of type must override a superclass method解决方法
- The method *** of type ** must override a superclass method
- The method of type must override a superclass method 解决
- The method *** of type CourseServiceImpl must override a superclass method
- android The method of type must override a superclass method
- eclipse:the method of type must override a superclass method
- the method of type must override a superclass.
- MyEclipse6.5 @Override 时出错误 The method of type must override a superclass method
- @Override的问题: The method of type must override a superclass method
- @Override注解报错,The method xxx of type xxx must override a superclass method
- override方法时,eclipse提示The method *** of type CourseServiceImpl must override a superclass method
- he method of type must override a superclass method
- The method ## of ## must override a superclass method
- The method of type must override a superclass method解决方式
- android工程出现"The method * of type * must override a superclass method"的解决方法
- 解决“The method XXXXXX of type XXXXXXXXX must override a superclass method”
- The method of type must override a superclass method 相关问题
- Hive的数据存储及解析
- 无参装饰器与有参装饰器
- Codeforces Round #419 (Div. 2) D
- 钱多的没处花?程序员老司机教你如何5年攒百万
- jquery实现双击编辑表格
- The method getNotCompleteOrder(ResultBean) of type HomeServiceImpl must override a superclass method
- 基于Rtmp协议的流媒体直播实现
- 基本函数
- c#
- 多线程编程(NSThread、NSOperation、GCD)
- iOS开发-应用角标展示逻辑处理
- Linux下的守护进程
- Arduino
- 微信传播如何使大家智商降低