SQL Server 數(shù)據(jù)庫 配置文件需要更改嗎?
<?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="connection.usernname"></property>
<property name="connection.password"></property>
<property name="connection.driver_class">com.sql.jdbc.Driver</property>
<property name="connection.url">jdbc:sql://hibernate?useUnicode=true&characterEncoding=utf-8</property>
<property name="dialect">org.hibernate.dialect.SQLDialect</property>
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<property name="hbm2ddlauto></property>
<mapping ?resource="Students.hbm.xml/>
? ? </session-factory>
</hibernate-configuration>
2017-03-02
把鏈接驅(qū)動(dòng)換成sql server的就可以了 ??