1. 程式人生 > >exception:Failed to read candidate component class: file

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
在這裡插入圖片描述