InitializingBean接口和BeanPostProcessor接口

1.可用来修改bean对象的BeanPostProcessor 点击打开链接

2.InitializingBean接口为bean提供了初始化方法的方式,它只包括afterPropertiesSet方法,
      凡是继承该接口的类,在初始化bean的时候会执行该方法.
  该方法将在所有的属性被初始化后调用,但是会在init前调用。

猜你喜欢

转载自blog.csdn.net/qq_17089617/article/details/80851626