Spring Prototype scoped bean in a singleton

后端 未结 5 1390
你的背包
你的背包 2020-11-29 23:50

I am trying to inject a prototype bean in a singleton bean such that every new call to a singleton bean method has a new instance of the prototype

5条回答
  •  误落风尘
    2020-11-30 00:40

    Right way to achieve it - use lookup method injection and everywhere where you used beans use lookup method invocation (detailed answer)

提交回复
热议问题