编程知识 cdmana.com

Mybatis plus built-in service interface method ehcache cache is invalid

springboot+mybatis Configure the cache Ehcache

  1. pom.xml

Ehcache and mybatis plus Rack bag

  1. ehcache.xml

resources Under the folder ehcache.xml file
image

  1. mappers.xml Custom cache ehcache, Add query method

image

  1. Test built in Service Interface methods and their own query methods

image

  1. test result , built-in Service Interface methods do not go to cache , Added query method , Go cache .

image

版权声明
本文为[heart_ Pwx]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224160733333F.html

Scroll to Top