@Override on a method implementing an interface is not allowed in Java 5, but is allowed in Java 6+
STS 2.7.2 by default seems to set projects up to be Java 1.5. If you would like to use Java 6, right-click on your project->Properties->Java Compiler and change Compiler compliance level to 1.6. After a project rebuild the error should be gone.
No comments:
Post a Comment