Added clarification to documentation on where to set spring.profiles.active. Fixes #612

This commit is contained in:
Ryan Baxter
2019-12-11 16:23:35 -05:00
parent af772dbafb
commit b7bef1d3e0

View File

@@ -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