2021
01-21
01-21
在Mybatis中使用自定义缓存ehcache的方法
自定义缓存-ehcacheEhcache是一种广泛使用的开源Java分布式缓存。主要面向通用缓存,JavaEE和轻量级容器1.导包<!--https://mvnrepository.com/artifact/org.mybatis.caches/mybatis-ehcache--><dependency><groupId>org.mybatis.caches</groupId><artifactId>mybatis-ehcache</artifactId><version>1.1.0</version></dependency>2.在Mapper.xml中指定使用ehcache缓存实现<!--在当前Mapper.xml中使用二级缓存--><cache...
继续阅读 >