Compare commits

..
5 Commits
Author SHA1 Message Date
2martens 46b1b32708 Properties must be changeable with setters
continuous-integration/drone/push Build is failing
2023-08-17 01:52:50 +02:00
2martens 519101023c Change message [CI SKIP] 2023-08-17 01:42:01 +02:00
2martens 82b4f51390 Require configserver on prod
continuous-integration/drone/push Build is failing
2023-08-17 01:38:26 +02:00
2martens 3256939ac7 Change message [CI SKIP] 2023-08-17 01:20:17 +02:00
2martens 02e4c5318d Fix bootstrap servers on prod
continuous-integration/drone/push Build is failing
2023-08-17 01:14:03 +02:00
4 changed files with 6 additions and 8 deletions
@@ -9,4 +9,4 @@ 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 @ConstructorBinding constructor(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
@@ -28,10 +28,6 @@ spring:
name: wahlrecht name: wahlrecht
main: main:
banner-mode: off banner-mode: off
kafka:
bootstrap-servers:
- localhost:9092
- kafka:9092
profiles: profiles:
default: dev default: dev
data.mongodb: data.mongodb:
@@ -1,2 +1,2 @@
de.twomartens.wahlrecht: de.twomartens.wahlrecht:
greeting: "Moin %s, you are prod" greeting: "Moin %s, you are stage"