Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve property placeholder resolution when multiple configurers are declared [SPR-10654] #15282

Closed
spring-projects-issues opened this issue Jun 13, 2013 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: duplicate A duplicate of another issue type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jun 13, 2013

Bozhidar Bozhanov opened SPR-10654 and commented

There are some problems when working with multiple <context:property-placeholder /> are defined (possibly in multiple .xml files)

  • when there are more than one configurers, the "ignore-unresolved" must be set to "true", otherwise startup fails, because one configurer doesn't have all the required properties

  • if there are nested properties obtained from multiple locations, startup fails, because ignore-unresolved does not affect the ignoreUnresolvableNestedPlaceholders property.

Here are some more details on my current issue: http://stackoverflow.com/questions/17084563/spring-namespacehandler-and-multiple-property-placeholders

Currently it is solved by setting env.setIgnoreUnresolvableNestedPlaceholders(true), but I think there should be available for configuration via tha *PlaceholderConfigurer. Currently it is a property of the PropertyResolver and is not accessible from anywhere, apart from the Environment


Affects: 3.2 GA

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Jun 20, 2013

Phil Webb commented

This looks like it might possibly be a duplicate of #14623?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: duplicate A duplicate of another issue type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants