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

@ -3,7 +3,7 @@
------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------
# 5.6.2 (2021-03-26) # 5.6.2 (2021-03-28)
### 新特性 ### 新特性
* 【core 】 Validator增加车架号(车辆识别码)验证、驾驶证驾驶证档案编号的正则校验pr#280@Gitee * 【core 】 Validator增加车架号(车辆识别码)验证、驾驶证驾驶证档案编号的正则校验pr#280@Gitee
@ -13,6 +13,7 @@
* 【core 】 增加DateTime字符串构造issue#I3CQZG@Gitee * 【core 】 增加DateTime字符串构造issue#I3CQZG@Gitee
* 【core 】 修改ArrayUtil代码风格pr#287@Gitee * 【core 】 修改ArrayUtil代码风格pr#287@Gitee
* 【json 】 JSONConfig增加setStripTrailingZeros配置issue#I3DJI8@Gitee * 【json 】 JSONConfig增加setStripTrailingZeros配置issue#I3DJI8@Gitee
* 【db 】 升级兼容BeeCP3.x
### Bug修复 ### Bug修复
* 【core 】 修复FileTypeUtil中OFD格式判断问题pr#1489@Github * 【core 】 修复FileTypeUtil中OFD格式判断问题pr#1489@Github

View File

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

View File

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