Mybatis_ecache缓存

有个专门做缓存的框架:ecache.jar

Mybatis对Ecache缓存进行了整合,出了mybatis-ecache.jar

在Mybatis的基础上导入新的jar包,mybatis-ecache.xxxxx.jar

下载jar包

https://github.com/mybatis/ehcache-cache/releases

导入jar包【3个】

在src下新增一个ecache的配置文件

拷贝出来

修改名字:ehcache.xml

启用ehcache缓存

学习中,博客都是自己学习用的笔记,持续更新改正。。。
原文地址:https://www.cnblogs.com/Tunan-Ki/p/11780120.html