fix #406
This commit is contained in:
parent
89e09ca567
commit
b605573221
1 changed files with 5 additions and 1 deletions
|
@ -73,7 +73,11 @@ public interface FessProp {
|
|||
}
|
||||
|
||||
public default void setSystemProperty(final String key, final String value) {
|
||||
ComponentUtil.getSystemProperties().setProperty(key, value);
|
||||
if (value != null) {
|
||||
ComponentUtil.getSystemProperties().setProperty(key, value);
|
||||
} else {
|
||||
ComponentUtil.getSystemProperties().remove(key);
|
||||
}
|
||||
}
|
||||
|
||||
public default boolean getSystemPropertyAsBoolean(final String key, final boolean defaultValue) {
|
||||
|
|
Loading…
Add table
Reference in a new issue