<mapping resource="cn/chapter1/Person.hbm.xml"/> <mapping resource="cn/chapter2/Person.hbm.xml"/> 有两个在不同的包,但名字相同,也会无法解析,删掉一个就行了