![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
源码分析
文章平均质量分 93
沈建南
这个作者很懒,什么都没留下…
展开
-
JDK1.7中的hashMap源码分析
JDK1.7中的hashMap 重要属性 /** * The default initial capacity - MUST be a power of two. * 默认初始化的容量,必须是2的幂 */ static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // aka 16 /** * The maximum capacity, used if a higher value is implicitly specified * by原创 2021-10-09 22:21:41 · 165 阅读 · 0 评论 -
Mybatis之拦截链
Mybatis之拦截链 Mybatis采用责任链模式,通过动态代理组织多个拦截器(插件),通过这些拦截器可以改变Mybatis的默认行为(诸如SQL重写之类的),由于插件会深入到Mybatis的核心,因此在编写自己的插件前最好了解下它的原理,以便写出安全高效的插件。 拦截器(Interceptor)在 Mybatis 中被当做插件(plugin)对待,官方文档提供了 Executor,ParameterHandler,ResultSetHandler,StatementHandler 共4种,我们这次借鉴M原创 2021-03-29 00:47:27 · 443 阅读 · 0 评论