Fix DataSourceConfiguration isTestOnReturn()

Fix setTestOnReturn to use isTestOnReturn.
pull/50/head
Phillip Webb 11 years ago
parent 621116c9b8
commit d64a44547c

@ -54,7 +54,7 @@ public class BasicDataSourceConfiguration extends AbstractDataSourceConfiguratio
this.pool.setMaxIdle(getMaxIdle());
this.pool.setMinIdle(getMinIdle());
this.pool.setTestOnBorrow(isTestOnBorrow());
this.pool.setTestOnReturn(isTestOnBorrow());
this.pool.setTestOnReturn(isTestOnReturn());
this.pool.setValidationQuery(getValidationQuery());
return this.pool;
}

@ -44,7 +44,7 @@ public class TomcatDataSourceConfiguration extends AbstractDataSourceConfigurati
this.pool.setMaxIdle(getMaxIdle());
this.pool.setMinIdle(getMinIdle());
this.pool.setTestOnBorrow(isTestOnBorrow());
this.pool.setTestOnReturn(isTestOnBorrow());
this.pool.setTestOnReturn(isTestOnReturn());
this.pool.setValidationQuery(getValidationQuery());
return this.pool;
}

Loading…
Cancel
Save