在hibernate控制台配置中加载数据库驱动程序时出错
我的配置文件如下:在hibernate控制台配置中加载数据库驱动程序时出错,hibernate,Hibernate,我的配置文件如下: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configu
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>
<property name="hibernate.connection.password">root$12</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/mysql</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
<mapping resource="com.sst.Course.hbm.xml"/>
</session-factory>
</hibernate-configuration>
org.gjt.mm.mysql.Driver
根$12
jdbc:mysql://localhost/mysql
根
org.hibernate.dialogue.mysqlinnodbdialogue
在创建控制台配置时加载数据库驱动程序时出错。尝试用com.mysql.jdbc.Driver替换
在控制台配置中验证数据库连接(Drivers,jar,…)您能发布错误吗?在控制台配置窗口中,我的错误显示如下:加载数据库driverclass(org.gjt.mm.mysql.Driver)时出现问题最初我在更改后使用了此url