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

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