MyBaits_查询缓存02_Ehcache二级缓存

一、Ehcache二级缓存的开启

  1.  导入jar(https://github.com/mybatis/ehcache-cache/releases
  2.   <cache type="org.mybatis.caches.ehcache.EhcacheCache"/>

     

二、使二级缓存不刷新

 

posted @ 2017-12-27 10:16  honghj  阅读(129)  评论(0编辑  收藏  举报