![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
源码
花园宝宝胡图图
太菜了
展开
-
Spring源码-Xml文件读取到BeanDefinition的封装
BeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("applicationContext.xml"));User u = (User) beanFactory.getBean("u");我们开始的第一步,一定是要读取XML文件,并将xml文件封装成JAVA对象。那么Spring是如何读取配置文件的ClassPathResource是Resource接口的子类实现类Resource接口的作用:读取相关文件.原创 2022-01-19 22:16:59 · 427 阅读 · 0 评论 -
128陷阱的源码分析
先看构造缓存数组的这个方法,注意其中的静态代码块,即在调用Integer的时候,就已经执行了private static class IntegerCache { static final int low = -128; static final int high; static final Integer cache[]; static { // high value may be configured by.原创 2021-11-06 09:14:07 · 101 阅读 · 0 评论 -
HashMap ---- putVal()详解
/** * Constructs an empty <tt>HashMap</tt> with the specified initial * capacity and load factor. * * @param initialCapacity the initial capacity * 初始化大小 * @param loadFactor the load.原创 2021-10-28 11:31:09 · 285 阅读 · 0 评论