exception:Failed to read candidate component class: file

转载:https://blog.csdn.net/qq_25108521/article/details/60960560

exception:Failed to read candidate component class: file

org.springframework.beans.factory.BeanDefinitionStoreException: **Failed to read candidate component class: file**
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

原因是jdk1.8只支持spring4.x以上的版本,可以将jdk版本下调(spring需要jdk1.5以上的版本支持)或升级spring版本。
1、调整编译环境:
在这里插入图片描述2、更改Project Facets
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/love_from_the_heart/article/details/85265599