mybatis整合Redis和ehcache实现二级缓存
mybatis整合Redis和ehcache实现二级缓存详解Mybatis集成ehcache1. 导入pom依赖2. 在Resource中添加一个ehcache.xml的配置文件3. 在applicationContexts.xml中加入chache配置4. 开启mybatis的二级缓存5. 在applicationContext-mybatis.xml中配置cacheMybatis集成redis...
原创
2019-09-26 14:33:12 ·
218 阅读 ·
0 评论