Skip to content

Instantly share code, notes, and snippets.

@ludo1026
Created November 21, 2013 09:54
Show Gist options
  • Save ludo1026/7578898 to your computer and use it in GitHub Desktop.
Save ludo1026/7578898 to your computer and use it in GitHub Desktop.
<bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" id="dataSource">
<property name="driverClassName" value="${database.driverClassName}" />
<property name="url" value="${database.url}" />
<property name="username" value="${database.username}" />
<property name="password" value="${database.password}" />
<property name="testOnBorrow" value="true" />
<property name="testOnReturn" value="true" />
<property name="testWhileIdle" value="true" />
<property name="timeBetweenEvictionRunsMillis" value="1800000" />
<property name="numTestsPerEvictionRun" value="3" />
<property name="minEvictableIdleTimeMillis" value="1800000" />
<property name="validationQuery" value="SELECT 1" />
<property name="initialSize" value="1" />
<property name="maxActive" value="50" />
<property name="maxIdle" value="20" />
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment