Skip to content

MVC handler method detection should ignore scopedTarget.x in favor of corresponding proxy bean [SPR-11548] #16173

@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-11548 and commented

According to #11780 I would expect that scoped targets are not autowire candidates and therefore would not cause problems with autowiring using @Autowired. But if I define a @Bean @Lazy @Scope(proxyMode=INTERFACES) all the @Autowired sites for beans of that type blow up (2 beans of the same type are found: x and scopedTarget.x).


Affects: 4.0.2

Issue Links:

0 votes, 6 watchers

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