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