The method of type must override a superclass method解决方式
2012-07-11 21:10
423 查看
今天做struts2上传文件的时候出现了这个问题:
The method execute() of type UploadAction must override or implement a supertype method
@Override 时出错误:
解决办法是:
一、
因为你的Compiler 是jdk1.5,只要把它改为 1.6
方法:
1. window ->preferences... -> java -> Compiler
2. Compiler compliance level : 6.0
二、 把项目的JRE变成6.0的
项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compiler compliance level 修改版本为6.0
三。 并且检查类名上是否继承了ActionSupport
本文出自 “刘晨迪” 博客,请务必保留此出处http://lovelydd.blog.51cto.com/3759643/927419
The method execute() of type UploadAction must override or implement a supertype method
@Override 时出错误:
解决办法是:
一、
因为你的Compiler 是jdk1.5,只要把它改为 1.6
方法:
1. window ->preferences... -> java -> Compiler
2. Compiler compliance level : 6.0
二、 把项目的JRE变成6.0的
项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compiler compliance level 修改版本为6.0
三。 并且检查类名上是否继承了ActionSupport
本文出自 “刘晨迪” 博客,请务必保留此出处http://lovelydd.blog.51cto.com/3759643/927419
相关文章推荐
- The method of type must override a superclass method解决方式
- The method of type must override a superclass method解决方式
- The method of type serviceimpl 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 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 must override a superclass method解决方式
- Eclipse: 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 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 regist(int, String, long, Object...) of type PaymentProxy must override a superclass解决方式
- eclipse 中导入android 工程时出错:The method of type must override a superclass method 解决方式
- The method of type must override a superclass method解决方式