发生异常:org.hibernate.InvalidMappingException: Unable to read XML
Caused by: org.dom4j.DocumentException: http://hibernate.org/dtd/hibernate-mapping-3.0.dtd%20 Nested exception: http://hibernate.org/dtd/hibernate-mapping-3.0.dtd%20
【在Dept.hbm.xml文件中:】
解决方法:
在dtd后面有个空格,导致无法解析,将此空格去掉即可。