-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Kenny MacLeod opened SPR-4785 and commented
I'd like to be able to specify the defaults for property placeholders within the placeholder itself, perhaps with something like this:
${my.property:myDefaultValue}
or something similar.
My use case is that often it is desirable to have to defaults alongside the placeholder, for readability. Also, our applications use a single, globally-defined placeholder configurer, and different instances of the application have different property sets, decoupled from the code itself. Embedding defaults within the placeholders would make this much easier to manage.
Affects: 2.5.4
Issue Links:
- Property placeholder defaulting in resources path [SPR-5508] #10180 Property placeholder defaulting in resources path
3 votes, 5 watchers
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement