From 9f3ec9ec74725c34fb07190164310383f7647096 Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Tue, 21 May 2019 10:33:09 -0400 Subject: [PATCH] Add note about spring.application.name needing to be set in bootstrap.yml. Fixes #416 --- 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 492f7d35..5260be8e 100644 --- a/docs/src/main/asciidoc/spring-cloud-commons.adoc +++ b/docs/src/main/asciidoc/spring-cloud-commons.adoc @@ -42,6 +42,8 @@ spring: ---- If your application needs any application-specific configuration from the server, it is a good idea to set the `spring.application.name` (in `bootstrap.yml` or `application.yml`). +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]`. You can disable the bootstrap process completely by setting `spring.cloud.bootstrap.enabled=false` (for example, in system properties).