From 1b8f5cbe512eb3a4bf169adaacb41f7e37cb6354 Mon Sep 17 00:00:00 2001 From: Gianluca Mannini Date: Mon, 25 Nov 2024 17:58:14 +0100 Subject: [PATCH] feat: default value refresh rate --- .../fse2/ms/gtw/statusmanager/service/impl/ConfigSRV.java | 2 +- src/main/resources/application.properties | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/it/finanze/sanita/fse2/ms/gtw/statusmanager/service/impl/ConfigSRV.java b/src/main/java/it/finanze/sanita/fse2/ms/gtw/statusmanager/service/impl/ConfigSRV.java index 25989ab..b9bf25a 100644 --- a/src/main/java/it/finanze/sanita/fse2/ms/gtw/statusmanager/service/impl/ConfigSRV.java +++ b/src/main/java/it/finanze/sanita/fse2/ms/gtw/statusmanager/service/impl/ConfigSRV.java @@ -43,7 +43,7 @@ public class ConfigSRV implements IConfigSRV { @Autowired private ProfileUtility profiles; - @Value("${ms.config.refresh-rate}") + @Value("${ms.config.refresh-rate:900000}") private Long refreshRate; private final Map> props; diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 6aaaf8f..a9974bb 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -94,4 +94,5 @@ ms.url.gtw-config=- ####################################### # GTW-CONFIG ####################################### -ms.config.refresh-rate=300000 +# default value 15 minutes +ms.config.refresh-rate=300000 \ No newline at end of file