自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 Spring源代码解析之四(容器的功能扩展)

容器的功能扩展 1、概述 之前的文章中BeanFactory接口以及它的默认实现类XmlBeanFactory为例进行分析,但是Spring中还提供了另一个接口ApplicationContext,用于扩展BeanFactory中现有的功能。  ApplicationContext和BeanFactory两者都是用于加载Bean的,但是相比之下,ApplicationContext提供了更多的...

2018-12-12 15:30:13 326

原创 Spring源代码解析之四(bean加载)

1、概述 已经分析了spring对于xml配置文件的解析,接下来就是对bean的加载。 getBean的实现 public <T> T getBean(String name, Class<T> requiredType, Object... args) throws BeansException { return doGetBean(name, require...

2018-12-11 11:08:03 525

原创 Spring源代码解析之三(自定义标签的解析)

自定义标签的解析 1、概述:通过前面的文章我们分析了默认标签的解析,我们先回顾下自定义标签解析所使用的方法 /** * Parse the elements at the root level in the document: * "import", "alias", "bean". * @param root the DOM root element of the docume...

2018-12-10 16:24:01 272

原创 Spring源代码解析之二(默认标签的解析)

默认标签解析 概述:本节重点详细分析默认标签的解析过程。接上一篇文章讲到parseBeanDefinitions(root, delegate); /** * Parse the elements at the root level in the document: * "import", "alias", "bean". * @param root the DOM root e...

2018-12-10 15:04:28 432

原创 Spring源代码解析之一(容器的基本实现)

容器的基本实现 DefaultListableBeanFactory是整个bean加载的核心部分,是Spring注册及加载bean的默认实现, XmlBeanFactory继承自DefaultListableBeanFactory与DefaultListableBeanFactory, 二者不同的地方其实是在XmlBeanFactory中使用了自定义的XML读取器XmlBeanDefinit...

2018-12-09 21:51:13 243

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除