spring源码解析
dameo
最难的不是学习,而是持之以恒的学习......
展开
-
spring源码解析-1
最近在看<spring源码深度解析>这本书,自己在GitHub上也下载了源码,DEBUG配合着看,做点笔记,加深下印象!巩固下知识.顺道给大伙分享下,有问题多多指教。一起进步哈。 版本:spring5.1.x @Test public void testSimpleLoad(){ //xmlBeanFactory 方式 //整个xml的解析都是在这步完成的 BeanFac...原创 2019-03-20 21:30:53 · 218 阅读 · 0 评论 -
spring源码解析-2
继续上一篇说的loadBeanDefinitions(EncodedResource encodedResource)方法, /** * Load bean definitions from the specified XML file. * @param encodedResource the resource descriptor for the XML file, * a...原创 2019-03-21 17:49:18 · 202 阅读 · 0 评论 -
spring源码解析-3
继续上篇内容,loadDocument(InputSource inputSource, EntityResolver entityResolver,ErrorHandler errorHandler, int validationMode, boolean namespaceAware) 的具体实现 /** * Load the {@link Document} at the sup...原创 2019-03-21 23:04:30 · 162 阅读 · 0 评论 -
spring源码解析-4
继续上篇,现在开始对xml文件具体元素进行解析 parseBeanDefinitions(root, this.delegate); 看下具体的实现 /** * Parse the elements at the root level in the document: * "import", "alias", "bean". * @param root the DOM ...原创 2019-03-25 15:02:28 · 152 阅读 · 0 评论 -
spring源码解析-5
继续走下去 /** * Process the given bean element, parsing the bean definition * and registering it with the registry. */ protected void processBeanDefinition(Element ele, BeanDefinitionParserDele...原创 2019-03-25 20:52:25 · 134 阅读 · 0 评论