天天看點

ERROR ContextLoader:307 - Context initialization failed

錯誤詳情

ERROR ContextLoader:307 - Context initialization failed

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\06、itoobehind\bos19\out\artifacts\bos19_war_exploded\WEB-INF\classes\com\itheima\bos\dao\base\IBaseDao.class]; nested exception is java.lang.IllegalArgumentException

系統架構

struts2+spring3+hibernate3

整體來說項目的版本相對來比較老,但是沒辦法啊,這是維護項目就是這樣啊!

運作環境

因為之前做的項目環境是IDEA 2017+jdk1.8.0.45+tomcat7.0.73

問題根源

經過排查,這個問題就是發生在環境的問題!

解決方案

jdk1.8隻能支援spring4.0而spring3隻能使用1.7及以下jdk進行配置。