Fix DataSourceConfiguration isTestOnReturn()
Fix setTestOnReturn to use isTestOnReturn.
This commit is contained in:
@@ -54,7 +54,7 @@ public class BasicDataSourceConfiguration extends AbstractDataSourceConfiguratio
|
|||||||
this.pool.setMaxIdle(getMaxIdle());
|
this.pool.setMaxIdle(getMaxIdle());
|
||||||
this.pool.setMinIdle(getMinIdle());
|
this.pool.setMinIdle(getMinIdle());
|
||||||
this.pool.setTestOnBorrow(isTestOnBorrow());
|
this.pool.setTestOnBorrow(isTestOnBorrow());
|
||||||
this.pool.setTestOnReturn(isTestOnBorrow());
|
this.pool.setTestOnReturn(isTestOnReturn());
|
||||||
this.pool.setValidationQuery(getValidationQuery());
|
this.pool.setValidationQuery(getValidationQuery());
|
||||||
return this.pool;
|
return this.pool;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class TomcatDataSourceConfiguration extends AbstractDataSourceConfigurati
|
|||||||
this.pool.setMaxIdle(getMaxIdle());
|
this.pool.setMaxIdle(getMaxIdle());
|
||||||
this.pool.setMinIdle(getMinIdle());
|
this.pool.setMinIdle(getMinIdle());
|
||||||
this.pool.setTestOnBorrow(isTestOnBorrow());
|
this.pool.setTestOnBorrow(isTestOnBorrow());
|
||||||
this.pool.setTestOnReturn(isTestOnBorrow());
|
this.pool.setTestOnReturn(isTestOnReturn());
|
||||||
this.pool.setValidationQuery(getValidationQuery());
|
this.pool.setValidationQuery(getValidationQuery());
|
||||||
return this.pool;
|
return this.pool;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user