spring源码测试
org.springframework.context.annotation.ComponentScanParserTests.componentScanWithAutowiredQualifier()
example.scannable.AutowiredQualifierFooService.fooDao
D:\workspacespring\spring-context\src\test\java\example\scannable\StubFooDao.java
AutowiredQualifierFooService中
@Autowired
//@Qualifier("testing")
private FooDao fooDao;
StubFooDao中
@Repository("wjDao")
//@Qualifier("testing")
public class StubFooDao implements FooDao {}
beanId和对应的bean如下:
wjDao example.scannable.StubFooDao
参考文档如下: