Java “线程中的异常”;“主要”;org.hibernate.HibernateException:无法分析
我是hibernate新手,尝试运行第一个应用程序,但出现以下错误:Java “线程中的异常”;“主要”;org.hibernate.HibernateException:无法分析,java,hibernate,Java,Hibernate,我是hibernate新手,尝试运行第一个应用程序,但出现以下错误: “-//休眠/休眠配置DTD 3.0//EN” "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd“> 更新 org.hibernate.dialogue.mysqldialogue jdbc:mysql://localhost:3306/test 根 普拉尚特 com.mysql.jdbc.Driver 看起来您的hibernate.cf
“-//休眠/休眠配置DTD 3.0//EN”
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd“>
更新
org.hibernate.dialogue.mysqldialogue
jdbc:mysql://localhost:3306/test
根
普拉尚特
com.mysql.jdbc.Driver
看起来您的hibernate.cfg.xml中有一些无效的xml,因为它无法解析
尝试将内容发布到文件中,以便我们可以查看。将您的hibernate.cfg粘贴到问题中。.这是cfg文件
<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>