Skip to content

Commit 5de0f82

Browse files
committed
Merge branch '3.1.x'
Closes gh-38149
2 parents bdc5c05 + cbcde91 commit 5de0f82

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

+5-4
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,12 @@ The printed banner is registered as a singleton bean under the following name: `
129129

130130
[NOTE]
131131
====
132-
The `${application.version}` and `${application.formatted-version}` properties are only available if you are using Spring Boot launchers.
133-
The values will not be resolved if you are running an unpacked jar and starting it with `java -cp <classpath> <mainclass>`.
132+
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.
133+
The values will not be resolved if you are running an unpacked jar and starting it with `java -cp <classpath> <mainclass>`
134+
or running your application as a native image.
134135
135-
This is why we recommend that you always launch unpacked jars using `java org.springframework.boot.loader.launch.JarLauncher`.
136-
This will initialize the `application.*` banner variables before building the classpath and launching your app.
136+
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.launch.JarLauncher`.
137+
This will initialize the `application.*` banner properties before building the classpath and launching your app.
137138
====
138139

139140

0 commit comments

Comments
 (0)