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