1.1 @Override 致错:The method execute() of type UploadAction must override or implement a supertype method
解决办法:
- 因为你的Compiler 是jdk1.5,只要把它改为 1.6。方法:window ->preferences… -> java -> Compiler:Compiler compliance level : 6.0
- 把项目的JRE变成6.0:项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compiler compliance level 修改版本为6.0
1.2 报错:Description Resource Path Location TypeJava compiler level does not match the version of the installed Java project facet. shiro_learn Unknown Faceted Project Problem (Java Version Mismatch)
解决办法
项目上右键Properties–> 搜索Project Facets –>java版本调到与jdk和compiler相同的版本- 参考文档
参考文档1:Java compiler level does not match解决方法