java-spring 错误 Unsupported class file major version 57

surroundings

ubuntu 18.04 jdk13

error code

Caused by: org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: file ;

nested exception is java.lang.IllegalArgumentException: Unsupported class file major version 57

Solution

jdk13 temporarily not supported, downgraded to jdk11, can operate normally

Downscaling methods

  • File->Settings->Build,Execution,Deployment->Compiler->Java Compiler->project bytecode version 选择11

  • File->Project Structure->Project->

    • Porject Sdk Select 11

    • Porject language level select 11

  • File->Project Structure->Modules->language level 选择11

Guess you like

Origin www.cnblogs.com/INnoVationv2/p/12349571.html