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

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

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下载
官方微信