update beeCP

This commit is contained in:
Looly
2021-03-28 12:31:44 +08:00
parent 2484c82584
commit 825c55a2e2
3 changed files with 5 additions and 9 deletions

View File

@@ -79,8 +79,8 @@
</dependency>
<dependency>
<groupId>com.github.chris2018998</groupId>
<artifactId>BeeCP</artifactId>
<version>2.5.3</version>
<artifactId>beecp</artifactId>
<version>3.1.2</version>
<exclusions>
<exclusion>
<artifactId>slf4j-api</artifactId>

View File

@@ -10,7 +10,7 @@ import javax.sql.DataSource;
/**
* BeeCP数据源工厂类
*
*
* @author Looly
*
*/
@@ -33,11 +33,6 @@ public class BeeDSFactory extends AbstractDSFactory {
final BeeDataSourceConfig beeConfig = new BeeDataSourceConfig(driver, jdbcUrl, user, pass);
poolSetting.toBean(beeConfig);
// 修复BeeCP默认参数无效问题
if(beeConfig.getBorrowConcurrentSize() > beeConfig.getMaxActive()){
beeConfig.setMaxActive(beeConfig.getBorrowConcurrentSize() + 1);
}
// remarks等特殊配置since 5.3.8
String connValue;
for (String key : KEY_CONN_PROPS) {