Details
-
Type:
Improvement
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 3.1.3
-
Fix Version/s: Waiting for Triage
-
Component/s: Core
-
Labels:
-
Last commented by a User:true
Description
When using multiple PropertyPlaceholderConfigurer in conjunction with @Value annotation and default value for placeholders syntax (ie ${key:defaultValue}), only the first PropertyPlaceholderConfigurer is used. If this configurer does not contain the desired value, it falls back to @Value default even if the second PropertyPlaceholderConfigurer contains the value.
You'll find attached a JUnit test case with Spring xml context to reproduce the issue.
Attachments
Issue Links
- is duplicated by
-
SPR-10619 Default resolved property value is not working properly
-
- Closed
-
-
SPR-10240 Multiple PropertySourcesPlaceholderConfigurers do not work with placeholder defaults
-
- Resolved
-
-
SPR-10654 Improve property placeholder resolution when multiple configurers are declared
-
- Resolved
-
- links to