注入配置問(wèn)題
我按照老師的步驟一步一步來(lái)實(shí)現(xiàn)在運(yùn)行測(cè)試的時(shí)候出現(xiàn)以下問(wè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