Add note about spring.application.name needing to be set in bootstrap.yml. Fixes #416

This commit is contained in:
Ryan Baxter
2019-05-21 10:33:09 -04:00
parent 951539ed9c
commit 9f3ec9ec74

View File

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