天天看點

關于hibernate總是報錯 配置factory的id找不到,mapping配置檔案Could not parse mapping document from input stream

Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream

。。。。。。。。。。

Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org

解決辦法:

Person.hbm.xml配置檔案中,

"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">改為:

 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"
           

繼續閱讀