2017年1月4日

mybatis 与 缓存

摘要: 首先从配置文件说起,有个cacheEnabled的配置项,当设置为true时(默认就是true),Session就会用一个CachingExecutor来包装我们的Executor实例: 这是一个装饰者模式,在大部分情况下是直接转发调用的,在update方法和query方法中分别根据mapper中s 阅读全文
posted @ 2017-01-04 23:38 code_play 阅读(1222) 评论(0) 推荐(0) 编辑