注入配置問題
我按照老師的步驟一步一步來實現(xiàn)在運行測試的時候出現(xiàn)以下問題:
1、Caused by: java.io.FileNotFoundException: http://www.mybatis.org/dtd/mbatis-3-config.dtd
2、Caused by: org.apache.ibatis.builder.BuilderException: Error creating document instance.? Cause: java.io.FileNotFoundException: http://www.mybatis.org/dtd/mbatis-3-config.dtd
3、Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/imooc/demo/config/dao/SessionFactoryConfiguration.class]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance.? Cause: java.io.FileNotFoundException: http://www.mybatis.org/dtd/mbatis-3-config.dtd
4、Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'areaDao' defined in file [E:\ideaworkplace\demo\target\classes\com\imooc\demo\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/imooc/demo/config/dao/SessionFactoryConfiguration.class]: Invocation of init method failed; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance.? Cause: java.io.FileNotFoundException: http://www.mybatis.org/dtd/mbatis-3-config.dtd