02_获取bean工厂

2020-01-09  本文已影响0人  steamed_bun

\underline{spring容器刷新第二步}查看全部
// Tell the subclass to refresh the internal bean factory. ConfigurableListableBeanFactory beanFactory = obtainFreshBeanFactory();

  1. 刷新【创建】bean工厂
refreshBeanFactory();
  1. 将上面的beanFactory返回出去
ConfigurableListableBeanFactory beanFactory = getBeanFactory();
上一篇下一篇

猜你喜欢

热点阅读