2.Redis
一、 添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>二、 配置文件:
spring.cache.type = redis三、 启用注解支持:
@EnableCaching:启用缓存注解资料
Last updated