问答详情
源自:3-6 dao层开发

求助求助求助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

提问者:慕移动9267284 2019-07-11 16:51

个回答

  • 慕仔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下找不到资源路径