一、添加redis的起步依赖
<!-- 配置使用redis启动器 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
二、配置redis的连接信息
#Redis
spring.redis.host=127.0.0.1
spring.redis.port=6379
总结
集成Redis就分为这两步,导入依赖,和连接信息。