BeanFactoryPostProcessor and BeanPostProcessor in lifecycle events

前端 未结 4 1149
别跟我提以往
别跟我提以往 2020-12-02 09:19

I was trying to understand the difference between BeanFactoryPostProcessor and BeanPostProcessor.

I understood that BeanFactoryPostP

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 09:57

    The BeanFactoryPostProcessor executes before bean Object instantiation (ie at the time Applicationcontext container is initialized)

    BeanPostprocessor is executed after the bean object is created, as it can be executed before init() and after init().

提交回复
热议问题