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缓存

猜你喜欢

转载自www.cnblogs.com/Tunan-Ki/p/11780120.html