错误:
@Override must override a superclass method
解决:
首先看看这里的jdk版本:
在工具栏的window---- Preferences中,选择jdk版本,1.5是不支持override的注解的,需要选择1.5以上的。由于我的开发版本是1.8,所以就选择了1.8

假如任然报错,那就更改一下当前项目的版本:
右击当前的项目---选择Properties,出来之后选择jdk的版本,如下:

错误:
Java compiler level does not match the version of the installed Java project facet
还是版本不匹配的问题:
右击当前的项目---选择Properties,弹出的页面选择Project Facets ,选择jdk的版本,如下:
