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:UsersClayAwkyDesktopVPN WebsiteVPN-managementvpn-admintargetclassescomclayawkyvpnadminVpnAdminApplication.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



