Skip to content

@Enable-style annotation is desired for automatic registration of PropertySourcesPlaceholderConfigurer [SPR-9904] #14537

Closed
@spring-projects-issues

Description

@spring-projects-issues

Andrey Rubtsov opened SPR-9904 and commented

This issue is a continuation of #13183. Long story short, Environment is advertised to be used in new Spring projects.
However, in those cases when using PSPC is still wanted instead of declaring it as a @Bean it would be nice to have @Enable-style annotation instead for it.
The main argument so far is probably that PSPC @Bean looks slightly unnatural among app specific beans because it is related to Spring internals rather than carrying application bean semantics.


Issue Links:

16 votes, 26 watchers

Metadata

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)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions