qq_贱字如雾_0
2019-03-15 09:56
UnsatisfiedDependencyException: Error creating bean with name 'areaDao' defined in file [C:\Users\37991\IdeaProjects\test\mvndemo\target\classes\com\mvn\mvndemo\dao\AreaDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/mvn/mvndemo/config/dao/SessionFactoryConfiguration.class]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 22; columnNumber: 6; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。
Error creating bean with name 'areaDao' defined in file [C:\Users\37991\IdeaProjects\test\mvndemo\target\classes\com\mvn\mvndemo\dao\AreaDao.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/mvn/mvndemo/config/dao/SessionFactoryConfiguration.class]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 22; columnNumber: 6; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。
请问楼主找到解决方案了吗?
作者的这个教程比较偏向spring,配置会比较繁琐,你要学springboot的话可以去看看廖师兄的springboot进阶。
那可能就是dao层的配置有问题了,你认真检查一遍试试
没有找到areDao,引用dao层的时候有没有加@Autowired注解呀
SpringBoot+MyBatis搭建迷你小程序
91499 学习 · 621 问题
相似问题