异常报错 求大神

来源:3-6 dao层开发

qqHilcker

2019-04-12 15:31

java.lang.IllegalStateException: Failed to load ApplicationContext


Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'areaDao' defined in file [E:\workspace\demo\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 java.io.FileNotFoundException: class path resource [classpath*:/mapper/**.xml] cannot be opened because it does not exist


是怎么回事啊 求大神解答

写回答 关注

1回答

  • qqHilcker
    2019-04-12 17:31:50

    告诉大家咋解决的,因为到最后也没解决,把config下面的2个类啊 还有配置文件啊 全用源码的复制过来,就完事了,还是有地方写错了,只是你找不到,最后/微笑。

SpringBoot+MyBatis搭建迷你小程序

SpringBoot+MyBatis搭建小程序后台

91499 学习 · 621 问题

查看课程

相似问题