当前位置:网站首页>Phenomenon analysis when Autowired annotation is used for list
Phenomenon analysis when Autowired annotation is used for list
2022-07-07 05:18:00 【kgduu】
1、 The phenomenon
In a processing chain , There are many. AbstractHandler, One is the collection of management processing chains CompositeHandler.Handler1,Handler2, CompositeHandler yes AbstractHandler Implementation class of . among CompositeHandler Implemented as a
@Component
@Slf4j
public class CompositeHandler extends AbstractHandler {
@Autowired
private List<AbstractHandler> handlers;
@Override
public int handlerOrder() {
// TODO Auto-generated method stub
return 0;
}
@PostConstruct
public void init() {
log.info("handlers:{}", handlers);
}
Log output handlers Only 2 individual , Namely Handler1, Handler2. Why is this phenomenon ?
2、 analysis
DefaultListableBeanFactory Resolving dependencies List when , Obtain candidates that meet the specified type beanNames, Will filter with the current beanName equal .


边栏推荐
- 数字化创新驱动指南
- 最全常用高数公式
- 批量归一化(标准化)处理
- AttributeError: module ‘torch._ C‘ has no attribute ‘_ cuda_ setDevice‘
- Complete code of C language neural network and its meaning
- Leetcode longest public prefix
- No experts! Growth secrets for junior and intermediate programmers and "quasi programmers" who are still practicing in Universities
- K6EL-100漏电继电器
- sublime使用技巧
- 利用OPNET进行网络仿真时网络层协议(以QoS为例)的使用、配置及注意点
猜你喜欢

Weebly移动端网站编辑器 手机浏览新时代

What changes will PMP certification bring?

10 distributed databases that take you to the galaxy

Error: No named parameter with the name ‘foregroundColor‘

How to choose an offer and what factors should be considered

Autowired注解用于List时的现象解析

全链路压测:影子库与影子表之争

JHOK-ZBG2漏电继电器

【二叉树】二叉树寻路

U++4 interface learning notes
随机推荐
Is it necessary to renew the PMP certificate?
数字化如何影响工作流程自动化
SQL injection - secondary injection and multi statement injection
Error: No named parameter with the name ‘foregroundColor‘
《四》表单
高手勿进!写给初中级程序员以及还在大学修炼的“准程序员”的成长秘籍
10 distributed databases that take you to the galaxy
利用OPNET进行网络指定源组播(SSM)仿真的设计、配置及注意点
Dynamically generate tables
JHOK-ZBG2漏电继电器
IMS data channel concept of 5g vonr+
The sooner you understand the four rules of life, the more blessed you will be
腾讯云数据库公有云市场稳居TOP 2!
JHOK-ZBL1漏电继电器
LinkedBlockingQueue源码分析-初始化
痛心啊 收到教训了
The execution order of return in JS' try catch finally
使用知云阅读器翻译统计遗传学书籍
线程同步的两个方法
Auto. JS get all app names of mobile phones