链接传送门:https://blog.csdn.net/qq_37169817/article/details/78985527
这里做一下简单叙述:
mybatis缓存分为两级,一级是sqlSession级别的;二级是mapper级别的