Skip to content

Commit b82f5a4

Browse files
committed
Add a note about disabling git info
See gh-24205
1 parent a5c8b84 commit b82f5a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,13 @@ If you want to display the full git information (that is, the full content of `g
11221122
management.info.git.mode=full
11231123
----
11241124

1125+
To disable the git commit information from the `info` endpoint completely, set the configprop:management.info.git.enabled[] property to `false`, as follows:
1126+
1127+
[source,properties,indent=0,configprops]
1128+
----
1129+
management.info.git.enabled=false
1130+
----
1131+
11251132

11261133

11271134
[[production-ready-application-info-build]]

0 commit comments

Comments
 (0)