springMVC框架中,在hib-config.xml配置sqlserver2008数据库连接的代码

时间:2021-12-07 07:17:40
 <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
       <property name=" driverClassName" value=" com.microsoft.sqlserver.jdbc.SQLServerDriver"></property>
       <property name=" url" value=" jdbc:sqlserver://localhost:1433;Database=myhib;useUnicode=true&amp;characterEncoding=UTF-8"></property>
       <property name=" username" value=" sa"></property>
       <property name=" password" value="我自己的密码"></property>
</bean>