From 5eff527c48f598ef49786100b9069de06d161de6 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 17 Aug 2023 00:02:57 +0200 Subject: [PATCH] Enable config server locally --- module-server/src/main/resources/application-dev.yaml | 7 +++++++ module-server/src/main/resources/application.yaml | 9 +++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/module-server/src/main/resources/application-dev.yaml b/module-server/src/main/resources/application-dev.yaml index 199ba85..7f739d0 100644 --- a/module-server/src/main/resources/application-dev.yaml +++ b/module-server/src/main/resources/application-dev.yaml @@ -1,2 +1,9 @@ server.port: 12000 management.server.port: 12001 + + +spring: + config: + import: + - "classpath:config/wahlrecht.yaml" + - "optional:configserver:http://localhost:8888/config" diff --git a/module-server/src/main/resources/application.yaml b/module-server/src/main/resources/application.yaml index 88ad263..0b67c6b 100644 --- a/module-server/src/main/resources/application.yaml +++ b/module-server/src/main/resources/application.yaml @@ -23,9 +23,9 @@ management: http.server.requests: true spring: - config: - import: - - "classpath:config/wahlrecht.yaml" + cloud: + config: + name: wahlrecht main: banner-mode: off profiles: @@ -38,9 +38,6 @@ spring: resourceserver: jwt: jwk-set-uri: https://id.2martens.de/realms/2martens/protocol/openid-connect/certs - application: - name: wahlrecht - springdoc: swagger-ui: