亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

org.hibernate.MappingNotFoundException: resource: Students.hbm.xml not found at org.hibernate.cfg.Configuration.addResource(Configuration.java:738) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2188) at org.hibernate.cfg.Con

麻煩好心人幫幫忙,這個怎么解決呀?

正在回答

4 回答

MappingNotFoundException: *.hbm.xml Not Found.說明這個文件的位置是不對的.在hibernate.cfg.xml文件中直接寫 <mapping resource="*hbm.xml" />, 那么你這個資源文件就要放在與hibernate.cfg.xml文件同級目錄下,它就能找到并加載了.@_@ ????resource="*",?這個配置指定的是一個路徑.

0 回復 有任何疑惑可以回復我~
#1

蕭淳 提問者

非常感謝!
2017-02-16 回復 有任何疑惑可以回復我~

把配置文件貼上來啊

0 回復 有任何疑惑可以回復我~

試試將.cfg.xml文件最上面有hibernate.sourceforge....這個東西改為"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

org.hibernate.MappingNotFoundException: resource: Students.hbm.xml not found at org.hibernate.cfg.Configuration.addResource(Configuration.java:738) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2188) at org.hibernate.cfg.Con

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號