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文件夹下的你的项目这个目录 **

    推荐阅读