2018年12月5日

摘要: 47、[源码] Spring容器创建 初始化MessageSource 7、initMessageSource();初始化MessageSource组件(做国际化功能;消息绑定,消息解析); 1. 获取BeanFactory 2. 看容器中是否有id为messageSource的,类型是Messag 阅读全文
posted @ 2018-12-05 21:55 Grand_Jon 阅读(545) 评论(0) 推荐(0) 编辑
 
摘要: 46、[源码] Spring容器创建 注册BeanPostProcessors 6、registerBeanPostProcessors(beanFactory);注册BeanPostProcessor(Bean的后置处理器)【 intercept bean creation】 不同接口类型的Bea 阅读全文
posted @ 2018-12-05 21:52 Grand_Jon 阅读(279) 评论(0) 推荐(0) 编辑
 
摘要: 45、[源码] Spring容器创建 执行BeanFactoryPostProcessor 5、invokeBeanFactoryPostProcessors(beanFactory);执行BeanFactoryPostProcessor的方法; BeanFactoryPostProcessor:B 阅读全文
posted @ 2018-12-05 21:51 Grand_Jon 阅读(303) 评论(0) 推荐(0) 编辑
 
摘要: 44、[源码] Spring容器创建 BeanFactory预准备 Spring容器的refresh()【创建刷新】; 1、prepareRefresh()刷新前的预处理; 1. initPropertySources()初始化一些属性设置;子类自定义个性化的属性设置方法; 2. getEnviro 阅读全文
posted @ 2018-12-05 21:48 Grand_Jon 阅读(242) 评论(0) 推荐(0) 编辑