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

来源:3-6 dao层开发

慕移动9267284

2019-07-11 16:51

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回答

  • 慕仔4355370
    2020-02-25 14:40:24

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

  • weixin_宝慕林2538577
    2019-08-04 17:20:27

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

  • 慕前端6533302
    2019-07-12 11:45:31

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

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

    weixin...

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

    2019-08-04 17:19:31

    共 1 条回复 >

SpringBoot+MyBatis搭建迷你小程序

SpringBoot+MyBatis搭建小程序后台

91499 学习 · 621 问题

查看课程

相似问题