From 84fafe1db0353b5dace85216b6ef9bb13099fc9d Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Thu, 1 Feb 2018 09:37:04 -0800 Subject: [PATCH] Illustrate that endpoint expose & exclude take a list Closes gh-11861 --- .../main/asciidoc/production-ready-features.adoc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 21d97e8c849..01ba3bb3d3a 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 @@ -321,23 +321,24 @@ To change which endpoints are exposed, use the following technology-specific `ex The `expose` property lists the IDs of the endpoints that are exposed. The `exclude` property lists the IDs of the endpoints that should not be exposed. The `exclude` -property takes precedence over the `expose` property. +property takes precedence over the `expose` property. Both `expose` and `exclude` properties +can be configured with a list of endpoint IDs. -For example, to stop exposing all endpoints over JMX and only expose the `health` -endpoint, use the following property: +For example, to stop exposing all endpoints over JMX and only expose the `health` and `info` +endpoints, use the following property: [source,properties,indent=0] ---- - management.endpoints.jmx.expose=health + management.endpoints.jmx.expose=health,info ---- `*` can be used to select all endpoints. For example, to expose everything over HTTP -except the `env` endpoint, use the following properties: +except the `env` and `beans` endpoints, use the following properties: [source,properties,indent=0] ---- management.endpoints.web.expose=* - management.endpoints.web.exclude=env + management.endpoints.web.exclude=env,beans ---- NOTE: If your application is exposed publicly, we strongly recommend that you also