Clarify when SpEL expressions in application properties are evaluated #24531
Labels
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation currently states that
@Value
will evaluate SpEL expressions and that "while you can write a SpEL expression in@Value
, such expressions are not processed from application property files". This second point isn't worded as precisely as it could be. It is trying to say that SpEL expressions are not processed when parsing application properties and populating the environment. However, if a property's value contains a SpEL expression it will be evaluated when consumed via@Value
, irrespective of the property's origin.The text was updated successfully, but these errors were encountered: