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

异常报错 求大神

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


是怎么回事啊 求大神解答

提问者:qqHilcker 2019-04-12 15:31

个回答

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

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