In short:
Today, the company's JDK version 1.8 was upgraded to version 17. When starting the springboot project, the following error was prompted:
java.lang.UnsupportedClassVersionError: com/txxy/analysis/data/Application has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
This error is caused by the inconsistency between our project version and the specified running jdk version.
Modify the configuration:
Modify the 1.8 version to the jdk 17 version and run it successfully~