fix: Remove the code that filters empty strings from the properties file

* fix: Remove the code that filters empty strings from the properties file.
* blog birthday default value set "0"
pull/1697/head
lan-yonghui 2022-03-02 16:36:20 +08:00 committed by GitHub
parent 4d71185066
commit 4354991a9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -23,7 +23,7 @@ public enum PrimaryProperties implements PropertyEnum {
/** /**
* blog birthday * blog birthday
*/ */
BIRTHDAY("birthday", Long.class, ""), BIRTHDAY("birthday", Long.class, "0"),
/** /**
* developer mode. * developer mode.

View File

@ -213,10 +213,6 @@ public class OptionServiceImpl extends AbstractCrudService<Option, Integer>
.forEach(key -> { .forEach(key -> {
PropertyEnum propertyEnum = propertyEnumMap.get(key); PropertyEnum propertyEnum = propertyEnumMap.get(key);
if (StringUtils.isBlank(propertyEnum.defaultValue())) {
return;
}
result.put(key, result.put(key,
PropertyEnum.convertTo(propertyEnum.defaultValue(), propertyEnum)); PropertyEnum.convertTo(propertyEnum.defaultValue(), propertyEnum));
}); });