![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring源码
文章平均质量分 87
zouhuan_1995
这个作者很懒,什么都没留下…
展开
-
spring getBean()方法解析概述
getBean(beanName) 整体概述1.transformedBeanName(name)将bean的别名(alias)解析成真正的beanName 截取&beanName中&字符,获得beanName2.getSingleton(beanName) 从缓存中获取bean,有三个缓存集合,循环依赖会有单章讲解。singletonObjects :缓存已经初始化完成的bean对象 earlySingletonObjects : 循环引用中,提前暴露的bean对象原创 2021-06-10 10:22:17 · 1989 阅读 · 0 评论 -
Spring refresh初步解析
注:spring版本:5.2;本spring系类不涉及xml任何配置1.refresh()方法整体概述 public void refresh() throws BeansException, IllegalStateException { synchronized (this.startupShutdownMonitor) { // Prepare this context for refreshing. //容器刷新前的准备工作 prepareRefresh原创 2021-06-03 11:23:18 · 403 阅读 · 0 评论 -
spring启动与源码概述
注:spring版本:5.2;本spring系类不涉及xml1.启动代码AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AnnotationConfig.class);2.AnnotationConfigApplicationContext.构造方法解析 public AnnotationConfigApplicationContext(Class<?>原创 2021-05-23 00:16:52 · 81 阅读 · 0 评论