0
即时通讯新的休眠,并试图先运行应用程序,但得到这个错误:异常线程 “main” org.hibernate.HibernateException:无法解析
“ - //休眠/ Hibernate配置DTD 3.0 // EN”
“http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd”>
<hibernate-configuration>
<session-factory>
<property name="hbm2ddl.auto">update</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.url">jdbc:mysql://localhost:3306/test</property>
<property name="connection.username">root</property>
<property name="connection.password">prashant</property>
<property name="connection.driver_class"> com.mysql.jdbc.Driver</property>
<mapping resource="employee.hbm.xml"/>
</session-factory>
</hibernate-configuration>
将你的hibernate.cfg粘贴到问题中。 – ProgrammerBoy
这是cfg文件 – prashant