日期:2014-05-20  浏览次数:20720 次

大虾们帮忙看看这个HIBERNATE配置文件错在那里?
MS   SQLSERVER2000数据库。数据库名MBO。用户sa   ,密码111111
<?xml   version= '1.0 '   encoding   = 'utf-8 '?>
<hibernate-configuration>
<session-factory>
<property   name= "hibernate.connection.driver_class ">
net.sourceforge.jtds.jdbc.Drivernet.sourceforge.jtds.jdbc.Driver
</property>
<property   name= "hibernate.connection.url ">
jdbc:jtds:sqlserver://localhost:1433;DatabaseName=MBO
</property>
<property   name= "hibernate.connection.username "> sa
</property>
<property   name= "hibernate.connection.password "> 111111
</property>
<property   name= "hibernate.connection.pool_size "> 10
</property>
<property   name= "show_sql "> false
</property>
<property   name= "dialect "> org.hibernate.dialect.SQLServerDialect

</property>
<mapping   resource= "register.hbm.xml "/>

</session-factory>
</hibernate-configuration>


------解决方案--------------------
你没发现你的驱动写了两遍吗