这次的博客文章是基于上一篇博客 SpringBoot与缓存使用及原理(上)
一 环境准备
pom.xml文件中导入spring-boot-starter-cache,我这里是使用了redis做为缓存
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> </dependencies>
二 Spring-boot-starter-cache运行流程
今天我们来探索下SpringBoot中的缓存原理,首先我们看看pom.xml文件
可以看到我用的spring-boot-starter-cache是 1.5.13.RELEASE,接着看下maven导入的配置