日期:2014-05-16 浏览次数:20361 次
?
?
applicationContext-datasource-jdbc.xml?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC
??? "-//SPRING//DTD BEAN//EN"
??? "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="no" default-lazy-init="true"
default-dependency-check="none">
<description>datasource</description>
<!-- ???
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
?? <property name="driverClassName"><value>${jdbc.driverClassName}</value></property>
?? <property name="url"><value>${jdbc.url}</value></property>
?? <property name="username"><value>${jdbc.username}</value></property>
?? <property name="password"><value>${jdbc.password}</value></property>
</bean>
-->
?
?
?
?<bean id="dataSource" class="org.logicalcobwebs.proxool.ProxoolDataSource">
??<property name="driver">
???<value>${proxool.driver}</value>
??</property>
??<property name="driverUrl">
???<value>${proxool.url}</value>
??</property>
??<property name="user">
???<value>${proxool.username}</value>
??</property>
??<property name="password">
???<value>${proxool.password}</value>
??</property>
??<property name="alias">
???<value>${proxool.alias}</value>
??</property>
??<property name="prototypeCount">
???<value>${proxool.prototypeCount}</value>
??</property>
??<property name="maximumConnectionCount">
???<value>${proxool.maximumConnectionCount}</value>
??</property>
??<property name="minimumConnectionCount">
???<value>${proxool.minimumConnectionCount}</value>
??</property>
??<property name="trace">
???<value>${proxool.trace}</value>
??</property>
??<property name="verbose">
???<value>${proxool.verbose}</value>
??</property>
?</bean>
?<bean id="SimpleJdbcTemplate" class="org.springframework.jdbc.core.simple.SimpleJdbcTemplate" abstract="false" lazy-init="false" autowire="default">
??<constructor-arg>