摘要:
@(MyBatis)[Cache] MyBatis源码分析——Cache接口以及实现 Cache接口 MyBatis中的Cache以SPI实现,给需要集成其它Cache或者自定义Cache提供了接口。 public interface Cache { String getId(); void put 阅读全文
摘要:
@(MyBatis)[Cache] MyBatis Cache配置 MyBatis提供了一级缓存和二级缓存 配置 全局配置 |配置|说明|默认值|可选值| |: | | | | |cacheEnabled| 全局缓存的开关 |true|true false| |localCacheScope| 本地 阅读全文