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 ....>標簽內容
之后就可以正常啟動項目了