From bc47b715c3934694355fb6e3d75f5d9cb4d8ddd9 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 7 Mar 2018 10:32:10 +0100 Subject: [PATCH] Add a note about the use of `*` with YAML Closes gh-12361 --- .../main/asciidoc/production-ready-features.adoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc index 890ca3a16a..4287d18b78 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc @@ -341,6 +341,21 @@ except the `env` and `beans` endpoints, use the following properties: management.endpoints.web.exposure.exclude=env,beans ---- +[NOTE] +==== +`*` has a special meaning in YAML, so be sure to add quotes if you want to include (or +exclude) all endpoints, as shown in the following example: + +[source,yaml,indent=0] +---- + management: + endpoints: + web: + exposure: + include: "*" +---- +==== + NOTE: If your application is exposed publicly, we strongly recommend that you also <>.