From 93016dabfa6af54362a0d7f876db8e7a289b2670 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sat, 26 Jul 2025 13:37:52 +0200 Subject: [PATCH] fix: Align ServiceProperties with rest of properties --- .../wahlrecht/property/ServiceProperties.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 da3b973..d3b7645 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 @@ -2,13 +2,12 @@ package de.twomartens.wahlrecht.property import io.swagger.v3.oas.annotations.media.Schema import org.springframework.boot.context.properties.ConfigurationProperties -import org.springframework.cloud.context.config.annotation.RefreshScope +import org.springframework.boot.context.properties.bind.ConstructorBinding import java.time.ZoneId -@RefreshScope @ConfigurationProperties(prefix = "de.twomartens.wahlrecht") @Schema(description = "Properties, to configure this Application") -open class ServiceProperties { - lateinit var defaultTimeZone: ZoneId - lateinit var greeting: String -} +data class ServiceProperties @ConstructorBinding constructor( + val defaultTimeZone: ZoneId, + val greeting: String +) \ No newline at end of file