Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify when SpEL expressions in application properties are evaluated #24531

Closed
wilkinsona opened this issue Dec 16, 2020 · 0 comments
Closed
Labels
type: documentation A documentation update
Milestone

Comments

@wilkinsona
Copy link
Member

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.

@wilkinsona wilkinsona added this to the 2.3.x milestone Dec 16, 2020
@wilkinsona wilkinsona added the type: documentation A documentation update label Dec 16, 2020
@mbhave mbhave closed this as completed in c9a09cf Dec 18, 2020
@mbhave mbhave modified the milestones: 2.3.x, 2.3.8 Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

No branches or pull requests

2 participants