Caused by: org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file -

Caused by: org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file -,第1张

springboot聚合项目出现报错

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 [C:\Users\ClayAwky\Desktop\VPN Website\VPN-management\vpn-admin\target\classes\com\clayawky\vpnadmin\VpnAdminApplication.class]; nested exception is java.lang.IllegalArgumentException: Unsupported class file major version 61

原因是创建项目用的spring第4版本,但是pom文件是用的


    
        org.springframework.boot
        spring-boot-starter-parent
        2.2.4.RELEASE
    

去官网查看spring-boot-starter-parent的最新版本Maven Repository: org.springframework.boot » spring-boot-starter-parent (mvnrepository.com)https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-parent

我这里用的是


    
        org.springframework.boot
        spring-boot-starter-parent
        2.6.7
    

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/905575.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-15
下一篇 2022-05-15

发表评论

登录后才能评论

评论列表(0条)

保存