Eclipse reported an error after changing the JDK version
In the actual development process, perhaps due to the needs of the project, we need to change the version of JDK. However, an error will be reported after replacement, as follows:
Java compiler level does not match the version of the installed Java project facet.
Solution:
Step 1: set the eclipse JDK version
Windows---- > Preferences---- > Java---- > Installed JREs
Step 2: set the compiled version of JDK
Windows---- > Preferences---- > Java---- > Compiler
Step 3: right-click the project and set the JDK version of the project to the unified one above
Right-click the project-> Properties---- > Java Compiler