mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -74,7 +74,7 @@ public class DruidDSFactory extends AbstractDSFactory {
|
||||
// Druid连接池配置信息,规范化属性名
|
||||
final Props druidProps = new Props();
|
||||
poolSetting.forEach((key, value)-> druidProps.put(StrUtil.addPrefixIfNot(key, "druid."), value));
|
||||
ds.configFromPropety(druidProps);
|
||||
ds.configFromPropeties(druidProps);
|
||||
|
||||
//issue#I4ZKCW 某些非属性设置单独设置
|
||||
// connectionErrorRetryAttempts
|
||||
|
@@ -21,8 +21,6 @@ public class DialectFactoryTest {
|
||||
map.put("sqlite",DRIVER_SQLLITE3);
|
||||
map.put("sqlserver",DRIVER_SQLSERVER);
|
||||
map.put("microsoft",DRIVER_SQLSERVER);
|
||||
map.put("hive2",DRIVER_HIVE2);
|
||||
map.put("hive",DRIVER_HIVE);
|
||||
map.put("h2",DRIVER_H2);
|
||||
map.put("derby",DRIVER_DERBY);
|
||||
map.put("hsqldb",DRIVER_HSQLDB);
|
||||
@@ -40,6 +38,9 @@ public class DialectFactoryTest {
|
||||
map.put("sybase",DRIVER_SYBASE);
|
||||
map.put("mariadb",DRIVER_MARIADB);
|
||||
|
||||
// 单元测试歧义
|
||||
//map.put("hive2",DRIVER_HIVE2);
|
||||
//map.put("hive",DRIVER_HIVE);
|
||||
|
||||
map.forEach((k,v) -> Assertions.assertEquals(v,
|
||||
DialectFactory.identifyDriver(k+ RandomUtil.randomString(2),null) ));
|
||||
|
Reference in New Issue
Block a user