本帖隱藏的內容
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.directwebremoting.org/schema/spring-dwr
http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd">
<!-- mysql數據源 -->
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>com.mysql.jdbc.Driver</value>
</property>
<property name="url">
<value>
jdbc:mysql://127.0.0.1:3306/mydata?useUnicode=true&characterEncoding=utf-8
</value>
</property>
<property name="username">
<value>root</value>
</property>
<property name="password">
<value>root</value>
</property>
</bean>
<!-- sql server 2005數據源 -->
<!-- <bean id="dbcpDataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="com.microsoft.sqlserver.jdbc.SQLServerDriver">
</property>
<property name="url"
value="jdbc:sqlserver://192.168.1.18:1433;databaseName=stcaimsTest;">
</property>
<property name="username" value="sa"></property>
<property name="password" value="123"></property>
<property name="defaultCatalog" value="stcaimsTest"></property>
<property name="initialSize" value="2"></property>
<property name="defaultAutoCommit" value="true"></property>
<property name="removeAbandoned" value="true"></property>
<property name="testOnBorrow" value="true"></property>
<property name="validationQuery" value="select 1 "></property>
</bean> -->
<!-- hibernate配置文件 -->
<!-- <bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation"
value="classpath:com/st/caims/lxj/db/hibernateSqlServer.cfg.xml">
</property>
<property name="dataSource" ref="dbcpDataSource"></property>
</bean> -->
<!--這裏導入的是dwr的配置文件-->
<import resource="applicationContext-dwr.xml" />
</beans>