這個bug怎么改?第一次用Idea和第一次寫boot
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]" 的處理指令目標。
2019-04-09
請問樓主找到解決方案了嗎?
2019-03-15
作者的這個教程比較偏向spring,配置會比較繁瑣,你要學springboot的話可以去看看廖師兄的springboot進階。
2019-03-15
那可能就是dao層的配置有問題了,你認真檢查一遍試試
2019-03-15
沒有找到areDao,引用dao層的時候有沒有加@Autowired注解呀