当前位置:网站首页>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 .
边栏推荐
- y58.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三一)
- U++ metadata specifier learning notes
- App embedded H5 --- iPhone soft keyboard blocks input text
- Harmonyos fourth training
- Test interview | how much can you answer the real test interview question of an Internet company?
- AOSP ~Binder 通信原理 (一) - 概要
- AOSP ~binder communication principle (I) - Overview
- 动态生成表格
- 做自媒体,有哪些免费下载视频剪辑素材的网站?
- DFS,BFS以及图的遍历搜索
猜你喜欢
Window scheduled tasks
QT simple layout box model with spring
10 distributed databases that take you to the galaxy
Salesforce 容器化 ISV 场景下的软件供应链安全落地实践
Dynamically generate tables
U++ game learning notes
[opencv] image morphological operation opencv marks the positions of different connected domains
How to choose an offer and what factors should be considered
Is PMP really useful?
数字化如何影响工作流程自动化
随机推荐
Development thoughts of adding new requirements in secondary development
【QT】自定义控件-Loading
Analysis -- MySQL statement execution process & MySQL architecture
How can professional people find background music materials when doing we media video clips?
When knative meets webassembly
做自媒体,有哪些免费下载视频剪辑素材的网站?
Leetcode minimum difference in student scores
sublime使用技巧
Safe landing practice of software supply chain under salesforce containerized ISV scenario
IMS data channel concept of 5g vonr+
Scheduledexecutorservice timer
npm ERR! 400 Bad Request - PUT xxx - “devDependencies“ dep “xx“ is not a valid dependency name
人体传感器好不好用?怎么用?Aqara绿米、小米之间到底买哪个
Is it necessary to renew the PMP certificate?
Torch optimizer small parsing
Weebly移动端网站编辑器 手机浏览新时代
The sooner you understand the four rules of life, the more blessed you will be
Two methods of thread synchronization
动态生成表格
漏电继电器JOLX-GS62零序孔径Φ100