Hibernate使用时出现了 Could not parse configuration: /hibernate.cfg.xml 的异常问题,可能原因是dtd不正确,也可能是在hibernate.cfg.xml中的标签不对称,也可能是标签里面的内容不正确,例如:
<property name="connection.url">jdbc:mysql:///hibernate?useUnicode=true&characterEncoding=UTF-8</property>中标红加粗的地方写成了&,即&