Files
wahlrecht/module-server/src/main/kotlin/de/twomartens/wahlrecht/property/ServiceProperties.kt
T
2martens c19c211839
continuous-integration/drone/push Build is failing
Make properties refreshable
2023-08-17 02:15:23 +02:00

15 lines
509 B
Kotlin

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 java.time.ZoneId
@RefreshScope
@ConfigurationProperties(prefix = "de.twomartens.wahlrecht")
@Schema(description = "Properties, to configure this Application")
class ServiceProperties {
lateinit var defaultTimeZone: ZoneId
lateinit var greeting: String
}