为了账号安全,请及时绑定邮箱和手机立即绑定

第一个测试的时候报这个错误,有知道怎么解决的吗?

org.springframework.beans.factory.UnsatisfiedDependencyException:Error creating bean with name 'areaDao' defined in file [F:\springBootMybatis\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.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [F:\springBootMybatis\target\classes\mapper\AreaDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance.  Cause: java.io.FileNotFoundException: http://www.mybatis.org/dtd/mybatis-3-config-mapper.dtdhttps://img1.sycdn.imooc.com//5bc4075400018df310070435.jpghttps://img1.sycdn.imooc.com//5bc407650001e47609570415.jpg

正在回答

1 回答

你的mapper.xml文件有的地方写错了。仔细检查,

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

第一个测试的时候报这个错误,有知道怎么解决的吗?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号