Skip to content

Support placeholders in @Resource annotation configurations [SPR-5656] #10327

Closed
@spring-projects-issues

Description

@spring-projects-issues

nicolas de loof opened SPR-5656 and commented

Using @Resource is a nice option to get dependency injection. You just can't get support for propertyPlaceholder. For example, getting some configuration URL I'd like to write :

@Resource( name="${my.server.URL}" )
private URL serverUrl;


Affects: 2.5.6

Referenced from: commits 859497b

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions