springboot+mybatis 配置缓存Ehcache
1.pom.xml
2.ehcache.xml
resources文件夹下ehcache.xml文件
3.mappers.xml自定义缓存ehcache,增加查询方法
4.测试内置Service接口办法和本人增加的查询方法
5.测试后果,内置Service接口办法不走缓存,增加的查询方法,走缓存。
1.pom.xml
2.ehcache.xml
resources文件夹下ehcache.xml文件
3.mappers.xml自定义缓存ehcache,增加查询方法
4.测试内置Service接口办法和本人增加的查询方法
5.测试后果,内置Service接口办法不走缓存,增加的查询方法,走缓存。