From c19c2118391cd94e26e592db955324d758b8c94f Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 17 Aug 2023 02:15:23 +0200 Subject: [PATCH] Make properties refreshable --- .../de/twomartens/wahlrecht/property/ServiceProperties.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module-server/src/main/kotlin/de/twomartens/wahlrecht/property/ServiceProperties.kt b/module-server/src/main/kotlin/de/twomartens/wahlrecht/property/ServiceProperties.kt index aa9dcb7..62f0190 100644 --- a/module-server/src/main/kotlin/de/twomartens/wahlrecht/property/ServiceProperties.kt +++ b/module-server/src/main/kotlin/de/twomartens/wahlrecht/property/ServiceProperties.kt @@ -8,4 +8,7 @@ import java.time.ZoneId @RefreshScope @ConfigurationProperties(prefix = "de.twomartens.wahlrecht") @Schema(description = "Properties, to configure this Application") -data class ServiceProperties(var defaultTimeZone: ZoneId, var greeting: String) +class ServiceProperties { + lateinit var defaultTimeZone: ZoneId + lateinit var greeting: String +}