Skip to content

Commit 9aa1b52

Browse files
committed
Merge branch '2.4.x'
Closes gh-24566
2 parents 86d64c7 + 01537bc commit 9aa1b52

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,9 @@ If you used `@Value("{demo.itemPrice}")` instead, `demo.item-price` and `DEMO_IT
18531853
If you define a set of configuration keys for your own components, we recommend you group them in a POJO annotated with `@ConfigurationProperties`.
18541854
Doing so will provide you with structured, type-safe object that you can inject into your own beans.
18551855

1856-
While you can write a `SpEL` expression in `@Value`, such expressions are not processed from <<boot-features-external-config-files,application property files>>.
1856+
`SpEL` expressions from <<boot-features-external-config-application-property-files,application property files>> are not processed at time of parsing these files and populating the environment.
1857+
However, it is possible to write a `SpEL` expression in `@Value`.
1858+
If the value of a property from an application property file is a `SpEL` expression, it will be evaluated when consumed via `@Value`.
18571859

18581860

18591861

0 commit comments

Comments
 (0)