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

求助求助求助Error creating bean with name 'areaDao' Error creating bean with name 'sqlSessionFactory' defined in class path resource

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'areaDao' defined in file [/Users/111/Desktop/DCTdemo/target/classes/com/dctjava/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/dctjava/demo/config/dao/SessionFactoryConfiguration.class]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [mybatis-conifg.xml] cannot be opened because it does not exist

正在回答

3 回答

请问解决了吗我也是这个报错

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

这个问题解决了吗?怎么结局的?

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

Error creating bean with name 'sqlSessionFactory' defined in class path resource

这还不明显吗,说不能够创建areaDao,因为在sqlSessionFactory下找不到资源路径

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

weixin_宝慕林2538577

这个问题解决了吗?怎么解决的?
2019-08-04 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

求助求助求助Error creating bean with name 'areaDao' Error creating bean with name 'sqlSessionFactory' defined in class path resource

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

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

帮助反馈 APP下载

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

公众号

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