关于java-web:mybatis-plus内置Service接口方法Ehcache缓存无效

springboot+mybatis 配置缓存Ehcache

1.pom.xml

2.ehcache.xml
resources文件夹下ehcache.xml文件

3.mappers.xml自定义缓存ehcache,增加查询方法

4.测试内置Service接口办法和本人增加的查询方法

5.测试后果,内置Service接口办法不走缓存,增加的查询方法,走缓存。

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理