2017-04-26 97 views
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> 
+0

将你的hibernate.cfg粘贴到问题中。 – ProgrammerBoy

+0

这是cfg文件 – prashant

回答

1

看起来你在你的hibernate.cfg.xml一些无效的XML,因为它不能解析。

尝试在此处发布文件中的内容,以便我们可以查看它。

相关问题