为了账号安全,请及时绑定邮箱和手机立即绑定

这种情况该怎么解决呢

org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml


正在回答

1 回答

问题现象:加载Hibernate时出现异常,可以看到异常信息:

      org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml

      Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect

 

        原因:hibernate.cfg.xml中引用了错误的DTD文件路径“http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd”。

 

        解决方法:替换为正确的DTD路径:“http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd”。


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

举报

0/150
提交
取消

这种情况该怎么解决呢

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号