From b7bef1d3e023e256b18d8266347bcb5b2dace8fb Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Wed, 11 Dec 2019 16:23:35 -0500 Subject: [PATCH] Added clarification to documentation on where to set spring.profiles.active. Fixes #612 --- docs/src/main/asciidoc/spring-cloud-commons.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/main/asciidoc/spring-cloud-commons.adoc b/docs/src/main/asciidoc/spring-cloud-commons.adoc index 20114c22..222df979 100644 --- a/docs/src/main/asciidoc/spring-cloud-commons.adoc +++ b/docs/src/main/asciidoc/spring-cloud-commons.adoc @@ -45,6 +45,8 @@ If your application needs any application-specific configuration from the server In order for the property `spring.application.name` to be used as the application's context ID you must set it in `bootstrap.[properties | yml]`. +If you want to retrieve specific profile configuration, you should also set `spring.profiles.active` in `bootstrap.[properties | yml]`. + You can disable the bootstrap process completely by setting `spring.cloud.bootstrap.enabled=false` (for example, in system properties). === Application Context Hierarchies