From 015b5b96f6ad0bad562a5fa61920504d5aa3b135 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Tue, 10 May 2022 17:13:04 -0400 Subject: [PATCH] Updates to use spring.config.activate.on-profile --- bus/src/main/resources/application.yml | 3 +-- configserver-bootstrap/src/main/resources/bootstrap.yml | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bus/src/main/resources/application.yml b/bus/src/main/resources/application.yml index 4476b5c..8de599a 100644 --- a/bus/src/main/resources/application.yml +++ b/bus/src/main/resources/application.yml @@ -2,7 +2,6 @@ spring: application: name: bus --- -spring: - profiles: other +spring.config.activate.on-profile: other server: port: 8081 \ No newline at end of file diff --git a/configserver-bootstrap/src/main/resources/bootstrap.yml b/configserver-bootstrap/src/main/resources/bootstrap.yml index 1e3478c..7e85aac 100644 --- a/configserver-bootstrap/src/main/resources/bootstrap.yml +++ b/configserver-bootstrap/src/main/resources/bootstrap.yml @@ -11,7 +11,9 @@ spring: --- spring: - profiles: native + config: + activate: + on-profile: native cloud: config: server: