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 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
|
||||
)
|
||||
Reference in New Issue
Block a user