When you need to reduce the JDK version of the current system from a high version to a lower version, you need to manually make the JDK version of the project in eclipse with the JDK version of the current system
Synchronize, or an error will occur
Setting up the compilation environment for Eclipse
To set the compilation environment for a project Java Virtual Machine Runtime environment: Select Java Compiler Settings compiler environment under right-click Properties
Set up the compilation environment in eclipse: perferences-->java-->compiler Settings under Windows
Set the default JDK environment for eclipse: set in windows-->perferences-->java-->installed JREs
Set the Java version of the Web project: Under Right--->properties, under Project Facets, change the Java edition to the version you want
JDK version inconsistency in eclipse occurs after the eclipse system switches JDK version