SystemPropsUtil.getBoolean方法应该只有值为true时才返回true,其他情况都应该返回false

This commit is contained in:
gonggy 2022-07-20 19:19:46 +08:00
parent 88c36b8bfa
commit 69782c0ced

View File

@ -93,12 +93,7 @@ public class SystemPropsUtil {
return defaultValue;
}
value = value.trim().toLowerCase();
if (value.isEmpty()) {
return true;
}
return Convert.toBool(value, defaultValue);
return BooleanUtil.toBoolean(value);
}
/**