Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59982ef762 | ||
|
|
56c6fef178 | ||
|
|
46b1b32708 | ||
|
|
519101023c | ||
|
|
82b4f51390 | ||
|
|
3256939ac7 | ||
|
|
02e4c5318d | ||
|
|
f06abd2838 | ||
|
|
f0297f2d2c | ||
|
|
ec23bd4d32 | ||
|
|
bab1892673 | ||
|
|
247fe83caa |
@@ -2,11 +2,10 @@ 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.boot.context.properties.bind.ConstructorBinding
|
|
||||||
import org.springframework.cloud.context.config.annotation.RefreshScope
|
import org.springframework.cloud.context.config.annotation.RefreshScope
|
||||||
import java.time.ZoneId
|
import java.time.ZoneId
|
||||||
|
|
||||||
@RefreshScope
|
@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")
|
||||||
data class ServiceProperties @ConstructorBinding constructor(val defaultTimeZone: ZoneId, val greeting: String)
|
data class ServiceProperties(var defaultTimeZone: ZoneId, var greeting: String)
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
spring:
|
spring:
|
||||||
config:
|
config:
|
||||||
import:
|
import:
|
||||||
- "classpath:config/wahlrecht.yaml"
|
- "configserver:http://configserver:8888/config"
|
||||||
- "optional:configserver:http://configserver:8888/config"
|
kafka:
|
||||||
|
bootstrap-servers:
|
||||||
|
- kafka:9092
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ spring:
|
|||||||
resourceserver:
|
resourceserver:
|
||||||
jwt:
|
jwt:
|
||||||
jwk-set-uri: https://id.2martens.de/realms/2martens/protocol/openid-connect/certs
|
jwk-set-uri: https://id.2martens.de/realms/2martens/protocol/openid-connect/certs
|
||||||
|
application:
|
||||||
|
name: wahlrecht
|
||||||
|
|
||||||
springdoc:
|
springdoc:
|
||||||
swagger-ui:
|
swagger-ui:
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
de.twomartens.wahlrecht:
|
de.twomartens.wahlrecht:
|
||||||
greeting: "Moin %s, you are great"
|
greeting: "Moin %s, you are stage"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
de.twomartens.wahlrecht:
|
de.twomartens.wahlrecht:
|
||||||
defaultTimeZone: Europe/Berlin
|
defaultTimeZone: Europe/Berlin
|
||||||
greeting: "Hello %s, on dev"
|
greeting: "Hello %s, on millenium"
|
||||||
statusprobe:
|
statusprobe:
|
||||||
scheduleDuration: 60
|
scheduleDuration: 60
|
||||||
maxKafkaFailureDuration: 5
|
maxKafkaFailureDuration: 5
|
||||||
|
|||||||
Reference in New Issue
Block a user