Skip to content

Commit 578eb25

Browse files
committed
Adding info endpoint configuration for WAR-packaged apps
1 parent 40a7445 commit 578eb25

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,14 @@ about the state of your `git` source code repository when the project was built.
284284
`git.properties` file is contained in your jar the `git.branch` and `git.commit`
285285
properties will be loaded.
286286

287+
If your app is packaged as a WAR file, you will have to specify the location of the
288+
`git.properties` file, as loading resources in this context requires a `URL` to the file:
289+
290+
[source,properties,indent=0]
291+
----
292+
git.properties: /WEB-INF/classes/git.properties
293+
----
294+
287295
For Maven users the `spring-boot-starter-parent` POM includes a pre-configured plugin to
288296
generate a `git.properties` file. Simply add the following declaration to your POM:
289297

0 commit comments

Comments
 (0)