SSH+sql server2005报错

来源:百度知道 编辑:UC知道 时间:2024/07/06 21:56:09
<property name="hibernate.connection.url">jdbc:sqlserver://localhost:1433; DatabaseName=design</property>
<property name="hibernate.connection.driver_class">com.microsoft.sqlserver.jdbc.SQLServerDriver</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password">sa</property>
<property name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="hibernate.connection.autocommit">true</property>
---------------------------------------------------------------
这是配置文件
--------------------------------------------------------------
10:16:41,781 ERROR SchemaU

有以下几种可能:
一:
<property name="hibernate.connection.url">jdbc:microsoft:sqlserver//localhost:1433;databaseName=hibernate_first </property>
少了microsoft

二:
改成:<property name="connection.url">
jdbc:sqlserver://localhost:1433;databaseName=hibernate_first
</property>
三:
哪个地方少写了个“:”号

不好意思能力有限啊!