How to pass parameters dynamically to Spring beans

后端 未结 5 2168
盖世英雄少女心
盖世英雄少女心 2020-12-28 14:31

I am new to Spring.

This is the code for bean registration:

 


        
5条回答
  •  清歌不尽
    2020-12-28 15:27

    Please have a look at Constructor injection.

    Also, Have a look at IntializingBean and BeanPostProcessor for other life cycle interception of a springbean.

提交回复
热议问题