org.hibernate.MappingException: Could not read mappings from resource:XX.hbm.xml
org.hibernate.MappingException: Could not read mappings from resource: xxxx.hbm.xml
如果报此类型的错误,一般是因为在配置XX.hbm.xml文件的<hibernate-mapping>的class中name属性时忘记写包名了(在你PO类有包名且你忘记写的情况下)。