配置
#redis配置
redis:
cluster:
nodes:
- 127.0.0.1:9000
- 127.0.0.1:9001
- 127.0.0.1:9002
- 127.0.0.1:9003
- 127.0.0.1:9004
- 127.0.0.1:9005
timeout: 6000ms
password:
lettuce:
pool:
max-active: 8
max-wait: -1ms
max-idle: 8
min-idle: 0
database: 0
依赖
<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>
- 集群 springboot2 springboot redis集群springboot2 springboot redis springboot2 springboot lettuce redis springboot2 springboot redis springboot2 springboot步骤redis springboot2 springboot2 springboot springboot2 springboot swagger3 swagger springboot2 springboot mybatis springboot2 springboot spring3 spring springboot2 springboot后台 管理系统