mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix MongoDS bug
This commit is contained in:
parent
660c8c58d0
commit
d79585799b
@ -19,6 +19,7 @@
|
||||
* 【extra 】 修复Sftp.mkDirs报错问题(issue#1536@Github)
|
||||
* 【core 】 修复Bcrypt不支持$2y$盐前缀问题(pr#1560@Github)
|
||||
* 【system 】 修复isWindows8拼写问题(pr#1557@Github)
|
||||
* 【db 】 修复MongoDS默认分组参数失效问题(issue#1548@Github)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -251,7 +251,7 @@ public class MongoDS implements Closeable {
|
||||
/**
|
||||
* 创建ServerAddress对象,会读取配置文件中的相关信息
|
||||
*
|
||||
* @param group 分组,如果为null默认为无分组
|
||||
* @param group 分组,如果为{@code null}或者""默认为无分组
|
||||
* @return ServerAddress
|
||||
*/
|
||||
private ServerAddress createServerAddress(String group) {
|
||||
@ -337,7 +337,7 @@ public class MongoDS implements Closeable {
|
||||
return builder;
|
||||
}
|
||||
|
||||
if (group == null) {
|
||||
if (StrUtil.isEmpty(group)) {
|
||||
group = StrUtil.EMPTY;
|
||||
} else {
|
||||
group = group + StrUtil.DOT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user