Moved refreshable configuration to config sub-directory

This commit is contained in:
2023-08-16 21:54:42 +02:00
parent a04094bc60
commit 0bf9ce36bd
3 changed files with 12 additions and 14 deletions
@@ -23,6 +23,10 @@ management:
http.server.requests: true
spring:
config:
import:
- "classpath:config/wahlrecht.yaml"
- "optional:configserver:http://configserver:8888/config"
main:
banner-mode: off
profiles:
@@ -38,17 +42,6 @@ spring:
application:
name: wahlrecht
# properties for application
de.twomartens.wahlrecht:
defaultTimeZone: Europe/Berlin
greeting: "Hello %s"
statusprobe:
scheduleDuration: 60
maxKafkaFailureDuration: 5
maxBlobFailureCount: 5
maxFailurePercent: 50
springdoc:
swagger-ui:
display-request-duration: true
@@ -1,3 +0,0 @@
spring:
config:
import: "optional:configserver:http://configserver:8888/config"
@@ -0,0 +1,8 @@
de.twomartens.wahlrecht:
defaultTimeZone: Europe/Berlin
greeting: "Hello %s"
statusprobe:
scheduleDuration: 60
maxKafkaFailureDuration: 5
maxBlobFailureCount: 5
maxFailurePercent: 50