整合Redis 引入场景 spring-boot-starter-redis ,观察依赖结构和自动配置类。 pom文件中 <!-- 引入 spring-boot-starter-redis 场景 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 依赖结构