fix: Align ServiceProperties with rest of properties
This commit is contained in:
@@ -2,13 +2,12 @@ package de.twomartens.wahlrecht.property
|
|||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema
|
import io.swagger.v3.oas.annotations.media.Schema
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties
|
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
|
import java.time.ZoneId
|
||||||
|
|
||||||
@RefreshScope
|
|
||||||
@ConfigurationProperties(prefix = "de.twomartens.wahlrecht")
|
@ConfigurationProperties(prefix = "de.twomartens.wahlrecht")
|
||||||
@Schema(description = "Properties, to configure this Application")
|
@Schema(description = "Properties, to configure this Application")
|
||||||
open class ServiceProperties {
|
data class ServiceProperties @ConstructorBinding constructor(
|
||||||
lateinit var defaultTimeZone: ZoneId
|
val defaultTimeZone: ZoneId,
|
||||||
lateinit var greeting: String
|
val greeting: String
|
||||||
}
|
)
|
||||||
Reference in New Issue
Block a user