ssh啟動報錯:org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect


ssh項目啟動報錯:

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

一開始以為是數據庫連接的事,后來發現是hibernate在實體對象映射數據庫表的時候出的錯

解決:

  查看hibernate.jar包里的hibernate-mapping-3.0.dtd里的

    <!DOCTYPE hibernate-mapping PUBLIC
      "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
      "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

  將*.hbm.xml中的<!DOCTYPE ....>的標簽換成上面的<!DOCTYPE ....>標簽內容

  之后就可以正常啟動項目了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM