org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file


在配置ssm項目的時候會出現這樣的bug:

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\java工作區\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ssm\WEB-INF\classes\com\ssm\service\TestService.class]; nested exception is java.lang.IllegalArgumentException

 

spring版本與java版本的問題。解決方法是將spring3.2的jar包全部 刪除,修改為高版本的(如:4.1的)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM