spring中Bean创建

Spring中bean的加载过程:

  1.获取配置文件资源

  2.对获取的xml资源进行一定的处理检验

  3.处理包装资源

  4.解析处理包装过后的资源

  5.加载提取bean并注册(添加到beanDefinitionMap中)

Spring中bean的获取过程:

  从beanDefinitionMap获取

 

参考:

http://blog.csdn.net/qq_18860653/article/details/53218117

原文地址:https://www.cnblogs.com/stanljj/p/8492329.html