applicationContext.xml
<?xml version= "1.0 " encoding= "GB2312 "?>
<!DOCTYPE beans PUBLIC
"-//SPRING//DTD BEAN//EN "
"http://www.springframework.org/dtd/spring-beans.dtd ">
<beans>
<!--数据源-->
<bean id= "dataSource " class= "org.springframework.jdbc.datasource.DriverManagerDataSource " destroy-method= "close ">
<property name= "driverClassName ">
<value> com.microsoft.sqlserver.jdbc.SQLServerDriver </value>
</property>
<property name= "url ">
<value> jdbc:sqlserver://localhost:1433;DatabaseName=IBS </value>
</property>
<property name= "username ">
<value> sa </value>
</property>
<property name= "password ">
<value> 168168 </value>
</property>
</bean>
<!--SessionFactory-->
<bean id= "sessionFactory " class= "org.springframework.orm.hibernate3.LocalSessionFactoryBean ">
<property name= "dataSource ">
<ref local= "dataSource " />
</property>
<property name= "mappingResources ">
<list>
<value> ibs/Manage_Account.hbm.xml </value>
</list>
</property>
<property name= "hibernateProperties ">
<props>