org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/atguigu/hi

来源:互联网 发布:项老赛淘宝网店 编辑:程序博客网 时间:2024/06/09 16:41
<mapping resource="cn/chapter1/Person.hbm.xml"/>

 <mapping resource="cn/chapter2/Person.hbm.xml"/>

原因是在 .cfg.xml 文件中配置了两个名字相同的  .hbm.xml文件,但是这另个

文件在不同的包里,也会无法解析.

删除其中一个就行了.

0 0