net.sf.log4jdbc.DriverSpy

 

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">

<property name="driverClassName" value="net.sf.log4jdbc.DriverSpy" />

<property name="url" value="${URL}" />

<property name="username" value="${USER_NAME}" />

<property name="password" ref="db_password" />

<property name="initialSize" value="0" />

<property name="maxActive" value="20" />

<property name="minIdle" value="0" />

<property name="maxWait" value="3600" />

<property name="testOnBorrow" value="true" />

<property name="defaultAutoCommit" value="false" />

<property name="defaultTransactionIsolation" value="2" />

</bean>

 

 

<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">

<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />

<property name="url" value="${URL}" />

<property name="username" value="${USER_NAME}" />

<property name="password" ref="db_password" />

<property name="initialSize" value="0" />

<property name="maxActive" value="20" />

<property name="minIdle" value="0" />

<property name="maxWait" value="3600" />

<property name="testOnBorrow" value="true" />

<property name="defaultAutoCommit" value="false" />

<property name="defaultTransactionIsolation" value="2" />

</bean>

 

net.sf.log4jdbc.DriverSpy  this is for output SQL for debug.

你可能感兴趣的:(bean,user,url,Class,360,output)