我将Redisson与Spring-boot一起使用,我需要将环境变量传递给redisson.yaml
地址:“ redis:// $ {REDIS_HOST}:6379”
当前在传递环境变量时不起作用。
---
singleServerConfig:
idleConnectionTimeout: 10000
pingTimeout: 1000
connectTimeout: 10000
timeout: 3000
retryAttempts: 3
retryInterval: 1500
password: null
subscriptionsPerConnection: 5
clientName: null
address: "redis://${REDIS_HOST}:6379"
subscriptionConnectionMinimumIdleSize: 1
subscriptionConnectionPoolSize: 50
connectionMinimumIdleSize: 32
connectionPoolSize: 64
database: 0
dnsMonitoringInterval: 5000
threads: 0
nettyThreads: 0
codec: !<org.redisson.codec.JsonJacksonCodec> {}
transportMode: "NIO"
答案 0 :(得分:0)
3.10.0版本已支持此功能