在学习spring的时候,出现以下错误大概是jdk版本和spring版本冲突的问题,我一开始用的是jdk11.0和spring3.0版本,把spring版本换为5.1.9的后顺利解决问题。
异常如下:
==Exception in thread “main” org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [E:\chromeDownloads\projects\spring1\out\production\spring1\com\how2java\aspect\LoggerAspect.class]; nested exception is java.lang.ArrayIndexOutOfBoundsException: Index 9322 out of bounds for length 81 ==