Failed to read candidate component class

来源:2-7 创建Web方法测试Swagger

慕粉1609076047

2023-04-25

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\H file plus\idmDownload\emos-hywx-api\target\classes\com\example\emos\hywx\EmosHywxApiApplication.class]; nested exception is 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 [D:\H file plus\idmDownload\emos-hywx-api\target\classes\com\example\emos\hywx\EmosHywxApiApplication.class]; nested exception is java.lang.IllegalArgumentException: Unsupported class file major version 61
你好,这是什么情况呀,之前版本问题后就直接复制了pom.xml文件

写回答

1回答

神思者

2023-04-26

你本地jdk版本太高了吧,你卸载所有的jdk,安装15.0.2这个版本的jdk

0
1
慕粉1609076047
非常感谢!
2023-05-14
共1条回复

SpringBoot 在线协同办公小程序开发 全栈式项目实战

未来趋势型业务 + 前后端综合技术栈 + 惊艳的细节打磨

1798 学习 · 1915 问题

查看课程