Spring源码深度解析第2天

时间:2014-09-05 10:14:11   收藏:0   阅读:301

没想到看了一个小时只看了一个方法

spring的StringUtils类中包含了很多字符串处理方法。其中很多方法都和String的方法一个效果。实在不明白为何要自己写一个。。。

BeanFactory bf = new XmlBeanFactory(new ClassPathResource("applicationContext.xml"));

从这句话开始看 new ClassPathResource("applicationContext.xml") 。

构造方法中首先对传入的路径进行处理。得到最简化的路径。然后初始化classloader;

完。

原文:http://chenduo.blog.51cto.com/6567048/1548967

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!