主配置文件
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.3.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.3.xsd"
default-lazy-init="true" default-autowire="byName">
<!-- 使用Spring的Annotation的配置 -->
<context:annotation-config />
<!-- mysql数据源 -->
<bean id="dataSourceMeMysql" class="org.logicalcobwebs.proxool.ProxoolDataSource">
<property name="driver" value="${mysql.jdbc.driverClassName}" />
<property name="driverUrl" value="${mysql.jdbc.url}"></property>
<property name="user" value="${mysql.jdbc.username}"></property>
<property name="password" value="${mysql.jdbc.password}"></property>
<property name="maximumConnectionCount" value="${jdbc.maximumConnectionCount}"></property>
<property name="minimumConnectionCount" value="${jdbc.minimumConnectionCount}"></property>
<property name="simultaneousBuildThrottle" value="500"></property><!-- 同时最大连接数 -->
<property name="maximumActiveTime" value="600000" /><!-- 最大激活时间600秒 -->
<property name="houseKeepingTestSql" value="${jdbc.testSql}"></property>
<property name="prototypeCount" value="5"></property>
<property name="trace" value="true"></property>
<property name="verbose" value="true"></property>
<property name="alias" value="${mysql.jdbc.alias}" />
</bean>
<!-- 主数据库数据源 -->
<bean id="dataSourceMainOracle" class="org.logicalcobwebs.proxool.ProxoolDataSource">
<property name="driver" value="${oracle.jdbc.driverClassName}" />
<property name="driverUrl" value="${oracle.jdbc.url}"></property>
<property name="user" value="${oracle.jdbc.username}"></property>