The method of type must override asuperclass? annotation:@Override
来源:互联网 发布:阿卡索 51talk 知乎 编辑:程序博客网 时间:2024/06/06 04:34
做ssm整合的时候出现问题提示:The method of type must override asuperclass? annotation:@Override的原因
查阅了一下资料,在jdk1.5下要使用@Override 这个annotation 必须保证 被标注方法来源于class 而不是interface,
但我检查过,发现自己的jdk确实是1.7版本啊。
最后发现,即使自己的jdk是1.7,还需要修改myeclipse里面的编译jdk版本,从5.0改成7.0,
修改路径是,在myeclipse下:Windows--Preferences--Java--Compiler,在右边的Compiler compliance level 修改版本为 7.0,就可以了
如果还有错,请检查:项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compiler compliance level 修改版本为 7.0
本人测试可用
本人菜鸟如有错误,希望大家指正
0 0
- The method of type must override asuperclass? annotation:@Override
- Override must override asuperclass 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 sup
- 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
- 轻松解决 MyEclipse、Eclipse 编译时提示 @Override The method of type must override a superclass method 即 @Overr
- 导入项目的时候,提示说@override The method of type must override a superclass method解决方式的错误
- The method of type must override a superclass method解决方式
- android工程出现"The method * of type * must override a superclass method"的解决方法
- Haroopad 中文不显示
- Mac Pro下卸载安装Mysql
- HDU2647
- Fragment学习记录一 静态创建fragment
- ubuntu下使用wireshark。。。。。
- The method of type must override asuperclass? annotation:@Override
- 重要经验八---UIImage转换为CVPixelBufferRef
- 利用MyBatis Generator自动创建代码
- dubbo简介
- KMP算法详解
- 使用 hsdis 查看 JIT 生成的汇编代码
- Android布局文件的一些属性值
- Spring Aop实例
- LR11录制脚本无法打开IE