We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如题,在Application-context分支下的AbstractApplicationContext的refresh方法会创建beanFactory并加载bean的属性,之后再实例化bean时执行preInstantiateSingletons方法。 这个方法我有一点看不懂,beanDefinitionMap中已经有四个对象(person、car、customBeanFactoryPostProcessor、customerBeanPostProcessor)。之后再引用getBean方法返回DefaultListableBeanFactory的意义是什么?
The text was updated successfully, but these errors were encountered:
此处执行getBean方法是为了提前初始化bean实例哈
Sorry, something went wrong.
No branches or pull requests
如题,在Application-context分支下的AbstractApplicationContext的refresh方法会创建beanFactory并加载bean的属性,之后再实例化bean时执行preInstantiateSingletons方法。
这个方法我有一点看不懂,beanDefinitionMap中已经有四个对象(person、car、customBeanFactoryPostProcessor、customerBeanPostProcessor)。之后再引用getBean方法返回DefaultListableBeanFactory的意义是什么?
The text was updated successfully, but these errors were encountered: