在學習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 ==