一:修改redis配置 /usr/local/etc/redis.conf notify-keyspace-events Ex 二:SpringBoot 集成redis <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis