diff --git a/src/main/java/it/finanze/sanita/fse2/ms/gtw/garbage/service/impl/ConfigSRV.java b/src/main/java/it/finanze/sanita/fse2/ms/gtw/garbage/service/impl/ConfigSRV.java index 4175b12..8ee901f 100644 --- a/src/main/java/it/finanze/sanita/fse2/ms/gtw/garbage/service/impl/ConfigSRV.java +++ b/src/main/java/it/finanze/sanita/fse2/ms/gtw/garbage/service/impl/ConfigSRV.java @@ -2,6 +2,7 @@ import it.finanze.sanita.fse2.ms.gtw.garbage.client.IConfigClient; import it.finanze.sanita.fse2.ms.gtw.garbage.dto.ConfigItemDTO; +import it.finanze.sanita.fse2.ms.gtw.garbage.dto.ConfigItemDTO.ConfigDataItemDTO; import it.finanze.sanita.fse2.ms.gtw.garbage.enums.ConfigItemTypeEnum; import it.finanze.sanita.fse2.ms.gtw.garbage.service.IConfigSRV; import it.finanze.sanita.fse2.ms.gtw.garbage.utility.ProfileUtility; @@ -32,7 +33,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 d0053aa..f450c5d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -64,4 +64,5 @@ ms.url.gtw-config= ####################################### # GTW-CONFIG ####################################### +# default value 15 minutes ms.config.refresh-rate=300000 \ No newline at end of file