From a53141f8a4d86a451c3232e9100f00b525fdee04 Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Wed, 9 Nov 2022 14:56:44 -0600 Subject: [PATCH] Fix JMX exposure default in config metadata and docs Fixes gh-33072 --- .../META-INF/additional-spring-configuration-metadata.json | 2 +- .../spring-boot-docs/src/docs/asciidoc/actuator/endpoints.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json index fcdeda03d8a..6cec380cd6a 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -66,7 +66,7 @@ }, { "name": "management.endpoints.jmx.exposure.include", - "defaultValue": "*" + "defaultValue": "health" }, { "name": "management.endpoints.jmx.unique-names", diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/endpoints.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/endpoints.adoc index 05a399f38fb..148c2819f95 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/endpoints.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/endpoints.adoc @@ -159,7 +159,7 @@ To change which endpoints are exposed, use the following technology-specific `in | | configprop:management.endpoints.jmx.exposure.include[] -| `*` +| `health` | configprop:management.endpoints.web.exposure.exclude[] |