Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [E:\ecjspworkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\springmvc_mybatis\WEB-INF\classes\cn\itcast\ssm\mapper\ItemsMapper.class]; nested exception is java.lang.IllegalArgumentException
因为我使用的是jdk1.8,spring使用的3.x的版本,将jdk换成1.7的问题就成功解决了!
本文介绍了一个关于Spring MVC结合MyBatis时遇到的兼容性错误:Context initialization failed。作者通过排查发现该问题与使用的JDK版本有关,在从JDK 1.8切换到1.7后,问题得到解决。
2915

被折叠的 条评论
为什么被折叠?



