mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix:AbsSetting.getStr配置原本就是空串,然后取得为null问题
This commit is contained in:
parent
8d35dc2e45
commit
bc60f83f98
@ -46,7 +46,7 @@ public abstract class AbsSetting implements OptNullBasicTypeFromStringGetter<Str
|
||||
*/
|
||||
public String getStr(String key, String group, String defaultValue) {
|
||||
final String value = getByGroup(key, group);
|
||||
if (StrUtil.isBlank(value)) {
|
||||
if (value == null) {
|
||||
return defaultValue;
|
||||
}
|
||||
return value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user