Spring - Explicit bean instantiation does not set @Value property

后端 未结 0 487
一整个雨季
一整个雨季 2020-12-23 23:34

I want to have a map of @Component instances of the same class. I init the instance like:

applicationContext.getBean(TorrentService.class)


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