Project was developed by using jdk1.6, running in the jetty plugin, run on eclipse without problems, the same code to run on the idea of an error:
Error prompt is very simple, do not support 1.7 class files, but project run Settings is jdk1.6.
Project can only use 1.6 to compile,
Idea related configuration is as follows:
Have tried to fix: project is a maven project, maven - clean, the idea itself invalidate cache, is still an error,
The most magical is: others idea version, code, run is not an error,
Has many days, please met the same problems or have ideas, help to look at, thank you!
CodePudding user response:
Check the pom. XML is match the Java versionCodePudding user response:
No configuration and the suspect is the idea which the configuration of the problem, but haven't found,