springboot整合redis
1.依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency>
2.配置
# Redis 配置 spring.redis.host=localhost spring.redis.port=6379
...其他设置

https://www.cnblogs.com/fps2tao/p/13824958.html