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 ">

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