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

这个问题是由bai较高版本的JDK编译的java class文件试图在较低版du本的JVM上运行zhi产生的错误。

在项目的属性里设置jdk版本,方法是右击项目-->properties-->java compiler --> Enable project specific settings -->将compiler compliance level设置为自己的JDK版本。

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

全部更改为自己的JDK版本

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

 

右键项目的入口程序  run as->spring boot app,运行成功

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

相关文章:

  • 2021-12-31
  • 2021-05-24
  • 2022-12-23
  • 2021-12-18
  • 2021-11-19
  • 2022-01-18
  • 2022-12-23
  • 2022-02-22
猜你喜欢
  • 2022-12-23
  • 2021-09-13
  • 2021-07-23
  • 2022-03-02
  • 2022-02-22
  • 2022-01-02
  • 2021-06-08
相关资源
相似解决方案