Exception in thread “main“ java.lang.UnsupportedClassVersionError: com/example/demo/SpringbootMybati

This problem is caused by the java class file compiled by the JDK of the higher version of Bai trying to run on the JVM of the lower version.

Set the jdk version in the properties of the project by right-clicking on the project -->properties-->java compiler --> Enable project specific settings -->Set the compiler compliance level to your own JDK version.

Change all to your own JDK version

 

Right-click the entry program run as->spring boot app, run successfully

Guess you like

Origin blog.csdn.net/qq_36409988/article/details/107711406