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

Clarify when SpEL expressions in application properties are evaluated #24531

wilkinsona opened this issue Dec 16, 2020 · 0 comments
Milestone

Comments

@wilkinsona
Copy link
Member

@wilkinsona wilkinsona commented Dec 16, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants