出错信息如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Unable to read XML
Caused by: org.hibernate.InvalidMappingException: Unable to read XML
Caused by: org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 58; 文档根元素 "hibernage-mapping" 必须匹配 DOCTYPE 根 "hibernate-mapping"。
web.xml部分代码
[img]http://dl.iteye.com/upload/attachment/0083/0783/68e93504-133f-305a-8a59-b52d86c31e73.jpg[/img]
applicationContext.xml部分代码
[img]http://dl.iteye.com/upload/attachment/0083/0787/cd056e86-91d4-3895-a6f4-c65a5db7627c.jpg[/img]
其中一个hibernate-mapping文件
[img]http://dl.iteye.com/upload/attachment/0083/0785/cba053b7-596a-3eba-9146-66c4c6bed12e.jpg[/img]