【spring-boot - 整合Reids集群】1.引入依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency><!--SpringBoot与Redis整合依赖--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-redis</artifactId></dependency><dependency><groupId>org.apache.commons</groupId><artifactId>commons-pool2</artifactId></dependency>2.配置application.propertiesserver.port=8080 server.servlet.encoding.charset=UTF-8 # 应用名称 spring.application.name=redis-sample spring.jackson.date-format='yyyy-MM-dd HH:mm:ss' spring.jackson.time-zone=GMT+8 # non_null - 字段值非空才返回该字段,否则返回体中不包含该字段 # always - 始终包含该属性,与该属性的值无关 spring.jackson.d