Fix DataSourceConfiguration isTestOnReturn()

Fix setTestOnReturn to use isTestOnReturn.
This commit is contained in:
Phillip Webb 2013-08-21 19:00:37 -07:00
parent 621116c9b8
commit d64a44547c
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}