IDEA关于之前还好好的|IDEA关于之前还好好的 突然就各种create bean不行了的问题BeanCreationException: Error creating bean with name
如果你实在不知道怎么回事不如按照我说的做一下 [org.springframework.web.context.support.XmlWebApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘testController’: Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.laozhu.service.TestService com.laozhu.controller.TestController.testService;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘testService’: Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.laozhu.dao.TestMapper com.laozhu.srv.imp.TestServiceImp.testMapper;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘testMapper’ defined in file [Z:\IdeaProjects\SpringMVC_test\SpringMVC_SSM\target\SpringMVC_SSM\WEB-INF\classes\com\laozhu\dao\TestMapper.class]: Cannot resolve reference to bean ‘sqlSessionFactory’ while setting bean property ‘sqlSessionFactory’;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [spring-mybatis.xml]: Invocation of init method failed;
nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: ‘file [Z:\IdeaProjects\SpringMVC_test\SpringMVC_SSM\target\SpringMVC_SSM\WEB-INF\classes\com\laozhu\mapping\UserMapper.xml]’;
nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException;
lineNumber: 8;
columnNumber: 5;
元素类型 “result” 必须后跟属性规范 “>” 或 “/>”。
【IDEA关于之前还好好的|IDEA关于之前还好好的 突然就各种create bean不行了的问题BeanCreationException: Error creating bean with name】**重点是这里Error creating bean with name ‘testMapper’ defined in file [Z:\IdeaProjects\SpringMVC_test\SpringMVC_SSM\target\SpringMVC_SSM\WEB-INF\classes\com\laozhu\dao\TestMapper.class
这个缓存没有删除 本地删除掉target文件夹下的你的项目这个目录 **
推荐阅读
- 由浅入深理解AOP
- 关于QueryWrapper|关于QueryWrapper,实现MybatisPlus多表关联查询方式
- 四首关于旅行记忆的外文歌曲
- 醒不来的梦
- 我和你之前距离
- 关于自我为中心的一点感想
- 「按键精灵安卓版」关于全分辨率脚本的一些理解(非游戏app)
- 关于Ruby的杂想
- 关于读书的思考
- IDEA|IDEA 创建工程