Calling A Method After all SpringBeans and ApplicationContext have been initialized

前端 未结 4 594
滥情空心
滥情空心 2020-12-18 21:22

I have a method in a complex java program that needs to be called immediately after the web ApplicationContext and SpringBeans have been initialized.

I\'ve tried toy

4条回答
  •  一向
    一向 (楼主)
    2020-12-18 21:49

    You could add a custom BeanFactoryPostProcessor which has access to the bean in question.

提交回复
热议问题