Improve server config documentation and cleanup

This commit is contained in:
Eduard Heimbuch
2023-12-01 14:34:50 +01:00
committed by René Pfeuffer
parent abe0a62cb4
commit d0c43dd9f4
32 changed files with 431 additions and 303 deletions

View File

@@ -70,7 +70,11 @@ public class ConfigurationResolver {
Map<String, String> configurationFile = new HashMap<>();
rootNode.fields().forEachRemaining(entry -> {
if (entry.getValue().isValueNode()) {
configurationFile.put(prefix + entry.getKey(), entry.getValue().asText());
if (entry.getValue().isNull()) {
configurationFile.put(prefix + entry.getKey(), null);
} else {
configurationFile.put(prefix + entry.getKey(), entry.getValue().asText());
}
} else {
configurationFile.putAll(readConfigurationFile(entry.getValue(), prefix + entry.getKey() + "."));
}