We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 355f6cf commit 66af665Copy full SHA for 66af665
src/main/java/org/stt/config/ConfigServiceFacade.java
@@ -22,6 +22,7 @@ public void start() throws Exception {
22
jsonConfigService.start();
23
if (jsonConfigService.isNewConfig()) {
24
yamlConfigService.start();
25
+ jsonConfigService.setConfig(yamlConfigService.getConfig());
26
} else {
27
skipYaml = true;
28
}
src/main/java/org/stt/config/JsonConfigService.java
@@ -41,6 +41,10 @@ public ConfigRoot getConfig() {
41
return config;
42
43
44
+ public void setConfig(ConfigRoot config) {
45
+ this.config = config;
46
+ }
47
+
48
@Override
49
public void start() throws Exception {
50
boolean mkdirs = sttJson.getParentFile().mkdirs();
0 commit comments