Created
July 8, 2014 14:03
-
-
Save rollxx/7f5ccda0c0988d71d442 to your computer and use it in GitHub Desktop.
spring datasource config with default transaction isolation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="datasource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> | |
<property name="driverClassName" value="${db.driverClass}" /> | |
<property name="url" value="${db.connectionURL}" /> | |
<property name="username" value="${db.user.username}" /> | |
<property name="password" value="${db.user.password}" /> | |
<property name="validationQuery" value="${db.connection.validationQuery}"/> | |
<property name="testOnBorrow" value="${db.connection.testOnBorrow}"/> | |
<property name="defaultTransactionIsolation" value="2"/> | |
</bean> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment