Skip to content

Document alternatives of using multiple PropertyPlaceholderConfigurers [SPR-9989] #14623

Closed
@spring-projects-issues

Description

Johann Vanackere opened SPR-9989 and commented

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.


Affects: 3.1.3

Attachments:

Issue Links:

Referenced from: commits spring-attic/spring-framework-issues@0017731

41 votes, 43 watchers

Metadata

Assignees

Labels

has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importin: coreIssues in core modules (aop, beans, core, context, expression)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions