Mybatis 使用Ehcache缓存机制//自带缓存与Spring结合使用
Ehcache简介
基本介绍

特性
MyBatis中使用Ehcache POM依赖
ecache配置文件,文件名必须为ehcache.xml
在mybatis-config.xml中<settings></settings>中设置开启缓存配置
mybatis的mapper中启用缓存
测试Controller
测试日志
Last updated