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

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

生成報表出現錯誤,怎么解決呢

一月 09, 2017 12:27:12 上午 org.hibernate.annotations.common.Version <clinit>

INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}

一月 09, 2017 12:27:12 上午 org.hibernate.Version logVersion

INFO: HHH000412: Hibernate Core {4.2.21.Final}

一月 09, 2017 12:27:12 上午 org.hibernate.cfg.Environment <clinit>

INFO: HHH000206: hibernate.properties not found

一月 09, 2017 12:27:12 上午 org.hibernate.cfg.Environment buildBytecodeProvider

INFO: HHH000021: Bytecode provider name : javassist

一月 09, 2017 12:27:13 上午 org.hibernate.cfg.Configuration configure

INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml

一月 09, 2017 12:27:13 上午 org.hibernate.cfg.Configuration getConfigurationInputStream

INFO: HHH000040: Configuration resource: /hibernate.cfg.xml

一月 09, 2017 12:27:13 上午 org.hibernate.cfg.Configuration addResource

INFO: HHH000221: Reading mappings from resource: entity/Students.hbm.xml


正在回答

4 回答

要貼JUnit欄的Failure Trace

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

慕沐2686865 提問者

org.hibernate.MappingNotFoundException: resource: entity/Students.hbm.xml not found
2017-01-09 回復 有任何疑惑可以回復我~

我也有同樣的問題。。。

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

沒找到你的“entity/Students.hbm.xml”配置文件,看看是不是路徑寫錯了

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

慕沐2686865 提問者

我電腦里有兩個mysql,但是Navicat只連上一個,請問一下這個會不會有什么影響,我剛看了一下路徑沒寫錯呀,要是錯了的話users也會出錯吧。。。
2017-01-09 回復 有任何疑惑可以回復我~
#2

慕沐2686865 提問者

你好,剛才那個問題是我把名字寫錯了,又出現新的問題了。。。 org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister
2017-01-09 回復 有任何疑惑可以回復我~

org.hibernate.MappingNotFoundException: resource: entity/Students.hbm.xml not found

at org.hibernate.cfg.Configuration.addResource(Configuration.java:740)

at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2197)

at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:2169)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2149)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2102)

at org.hibernate.cfg.Configuration.configure(Configuration.java:2017)

at org.hibernate.cfg.Configuration.configure(Configuration.java:1996)

at entity.testStudents.testSchemaExport(testStudents.java:16)

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

舉報

0/150
提交
取消

生成報表出現錯誤,怎么解決呢

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

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

幫助反饋 APP下載

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

公眾號

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