Skip to content

Clarify when SpEL expressions in application properties are evaluated #24531

@wilkinsona

Description

@wilkinsona

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions