Skip to content

Commit c86ee4c

Browse files
committed
Merge branch '2.3.x' into 2.4.x
Closes gh-25040
2 parents 53f1aab + 745dbaf commit c86ee4c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

+9
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,15 @@ You can also use the configprop:spring.main.banner-mode[] property to determine
152152

153153
The printed banner is registered as a singleton bean under the following name: `springBootBanner`.
154154

155+
[NOTE]
156+
====
157+
The `${application.version}` and `${application.formatted-version}` properties are only available if you are using Spring Boot launchers.
158+
The values won't be resolved if you are running an unpacked jar and starting it with `java -cp <classpath> <mainclass>`.
159+
160+
This is why we recommend that you always use launch unpacked jars using `java org.springframework.boot.loader.JarLauncher`.
161+
This will initialize the `application.*` banner variables before building the classpath and launching your app.
162+
====
163+
155164

156165

157166
[[boot-features-customizing-spring-application]]

0 commit comments

Comments
 (0)