启动tomcat报错:好像是hbm.xml的问题

10:19:25,238 ERROR ContextLoader:215 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deparrtmentDaoImpl': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\apache-tomcat-6.0.44\webapps\ItcastOA\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/itcast/oa/domain/User.hbm.xml
at

2个回答

hibernate的包是不是少了还是配置文件写错了

顶楼上。应该是配置的问题

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐