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

原因是自動生成的hibernate.cfg.xml第二個標籤引號內容的最末尾有一個空格,刪掉即可

<!DOCTYPE hibernate-configuration PUBLIC

          "-//Hibernate/Hibernate Configuration DTD 3.0//EN"

          "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd ">

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章