SSH整合后,数据源、映射文件、hibernate属性都被放到了spring的配置文件中了,是不是hibernate.cfg.xml文件已经不起作用了?那可以删了么?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\WorkSpace\.metadata\.me_tcat\webapps\liberInfo\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [hibernate.cfg.xml] cannot be resolved to URL because it does not exist
追答把你的bean中 id为sessionfactory 的配置内容发来看看
追问字数超过限制 , 发图的 不知道能不能看清
本回答被提问者采纳