org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml
Caused by: org.dom4j.DocumentException: http://hibernate.org/dtd/hibernate-configuration-3.0.dtd%20
Nested exception: http://hibernate.org/dtd/hibernate-configuration-3.0.dtd%20
出现上面异常是因为
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd "> 红色中间有空格 红色部分中间一定要挨着。
dtd%20 错误 %20