当前位置:网站首页>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 .


边栏推荐
- ScheduledExecutorService定时器
- U++ game learning notes
- Knapsack problem unrelated to profit (depth first search)
- 项目经理如何凭借NPDP证书逆袭?看这里
- Test interview | how much can you answer the real test interview question of an Internet company?
- How to choose an offer and what factors should be considered
- 高压漏电继电器BLD-20
- 10 distributed databases that take you to the galaxy
- 最长不下降子序列(LIS)(动态规划)
- Wonderful express | Tencent cloud database June issue
猜你喜欢

Longest palindrome substring (dynamic programming)

pytest测试框架——数据驱动

Harmonyos fourth training
![[opencv] image morphological operation opencv marks the positions of different connected domains](/img/c3/f437bad9432dedbbb14c8a62ba5180.png)
[opencv] image morphological operation opencv marks the positions of different connected domains

pmp真的有用吗?

Analysis -- MySQL statement execution process & MySQL architecture

LabVIEW在打开一个新的引用,提示内存已满
[email protected] Mapping relatio"/>Why JSON is used for calls between interfaces, how fastjson is assigned, fastjson 1.2 [email protected] Mapping relatio

AttributeError: module ‘torch._ C‘ has no attribute ‘_ cuda_ setDevice‘

【opencv】图像形态学操作-opencv标记不同连通域的位置
随机推荐
If you‘re running pod install manually, make sure flutter pub get is executed first.
第一篇论文的写作流程
DFS, BFS and traversal search of Graphs
U++ game learning notes
Understand common network i/o models
DBSync新增对MongoDB、ES的支持
设f(x)=∑x^n/n^2,证明f(x)+f(1-x)+lnxln(1-x)=∑1/n^2
AOSP ~Binder 通信原理 (一) - 概要
sublime使用技巧
qt 简单布局 盒子模型 加弹簧
Autowired注解用于List时的现象解析
CentOS 7.9安装Oracle 21c历险记
np.random.shuffle与np.swapaxis或transpose一起时要慎用
window定时计划任务
As we media, what websites are there to download video clips for free?
【QT】自定义控件-Loading
Analysis -- MySQL statement execution process & MySQL architecture
Sublime tips
No experts! Growth secrets for junior and intermediate programmers and "quasi programmers" who are still practicing in Universities
Leetcode(417)——太平洋大西洋水流问题