Last updated 5 years ago
Was this helpful?
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency>
spring.cache.type = redis
@EnableCaching:启用缓存注解
添加在main方法上面