我在hibernate配置單個(gè)mapping resource是正確的,但是配置多個(gè)mapping resource是錯(cuò)誤的,為什么?
java.lang.ExceptionInInitializerError
Caused by: org.hibernate.InvalidMappingException: Unable to read XML
Caused by: org.dom4j.DocumentException: http://hibernate.org/dtd/hibernate-mapping-3.0.dtd%20 Nested exception: http://hibernate.org/dtd/hibernate-mapping-3.0.dtd%20
java.lang.NullPointerException
2019-08-13
配置的圖貼出來(lái)
2019-06-04
mapping 只是配置映射文件,多配置也是沒(méi)有問(wèn)題的,哪怕你不使用這個(gè)映射文件或者沒(méi)有映射文件都沒(méi)問(wèn)題。可能是你別的地方錯(cuò)了。
2017-07-30
檢查下你對(duì)應(yīng)的 xml文件有沒(méi)有寫錯(cuò),注意開(kāi)頭標(biāo)簽 最后 dtd和雙引號(hào)間沒(méi)有空格