Allow default values to be specified for System properties in ResourceEditor [SPR-4622] #9299
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Dave Syer opened SPR-4622 and commented
Allow default values to be specified for System properties in ResourceEditor. It is really nice that ResourceEditor replaces placeholders with System properties, but it isn't helpful that it ignores (logging at warning level) missing values. It would be useful to specify a default, e.g.
<property name="location" value="classpath:application-${environment:test}.properties"/>
would evaluate to "classpath:application-test.properties" by default, and can be overridden by a System property.
Affects: 2.5.2
The text was updated successfully, but these errors were encountered: