Skip to content

Commit 747291c

Browse files
committed
Clarify docs on when application.* banner properties will work
Closes gh-33489
1 parent 94e8102 commit 747291c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/spring-application.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ The printed banner is registered as a singleton bean under the following name: `
131131

132132
[NOTE]
133133
====
134-
The `${application.version}` and `${application.formatted-version}` properties are only available if you are using Spring Boot launchers.
134+
The `application.title`, `application.version`, and `application.formatted-version` properties are only available if you are using `java -jar` or `java -cp` with Spring Boot launchers.
135135
The values will not be resolved if you are running an unpacked jar and starting it with `java -cp <classpath> <mainclass>`.
136136
137-
This is why we recommend that you always launch unpacked jars using `java org.springframework.boot.loader.JarLauncher`.
138-
This will initialize the `application.*` banner variables before building the classpath and launching your app.
137+
To use the `application.*` properties, launch your application as a packed jar using `java -jar` or as an unpacked jar using `java org.springframework.boot.loader.JarLauncher`.
138+
This will initialize the `application.*` banner properties before building the classpath and launching your app.
139139
====
140140

141141

0 commit comments

Comments
 (0)