From b82f5a408aa60c5a4a27619496b6a1cf2a8c7bbe Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Fri, 18 Dec 2020 18:02:27 -0800 Subject: [PATCH] Add a note about disabling git info See gh-24205 --- .../src/docs/asciidoc/production-ready-features.adoc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc index 58e8fef798e..3a35d65e722 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc @@ -1122,6 +1122,13 @@ If you want to display the full git information (that is, the full content of `g management.info.git.mode=full ---- +To disable the git commit information from the `info` endpoint completely, set the configprop:management.info.git.enabled[] property to `false`, as follows: + +[source,properties,indent=0,configprops] +---- + management.info.git.enabled=false +---- + [[production-ready-application-info-build]]