@Autowired fields null for beans created in a loop (second bean onwards)

后端 未结 0 1510
情书的邮戳
情书的邮戳 2021-01-07 12:46

I am creating beans by calling the method getAction in a loop.

...
ArrayList actions = new ArrayList();
for(int i=0; i

        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题