问答详情
源自:1-3 实体和映射的创建

这是什么情况,和视频上一样写的,报错

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [com/lzy/employ/domain/Employee.hbm.xml] cannot be opened because it does not exist


提问者:抬头就是阳光c 2017-03-29 12:46

个回答

  • 抬头就是阳光c
    2017-03-29 16:10:02

    已解决,就是没有找到Employee.hbm.xml,我创建Employee.hbm.xml竟然手抖多加个点写成Employee.hbm..xml,不仔细的看完全看不出

  • 抬头就是阳光c
    2017-03-29 12:48:05

    我的路径下的Employee.hbm.xml是存在的,路径也没写错,为什么会报错