org.hibernate.InvalidMappingException: Could not parse mapping document from resource
生活随笔
收集整理的這篇文章主要介紹了
org.hibernate.InvalidMappingException: Could not parse mapping document from resource
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在寫hibernate時,若運行出現"org.hibernate.InvalidMappingException: Could not parse mapping document from resource"問題,首先確定jar包導入無誤;
接下來看 *.hbm.xml文件中的字段:
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
寫了沒(或寫錯了);
最后看 *.hbm.xml文件中格式是否有誤,如設置值時,雙引號中不能有多余字符,如空格等。
以上僅是本人的一點經驗。
轉載于:https://blog.51cto.com/zhanglj13/884365
總結
以上是生活随笔為你收集整理的org.hibernate.InvalidMappingException: Could not parse mapping document from resource的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: WordPress 多媒体库添加分类和标
- 下一篇: html表格之个人简历