🎨 #1756 解决wx-java-open-spring-boot-starter中Redisson实现缺少database设置的问题

This commit is contained in:
TomLiu
2020-09-12 09:23:52 +08:00
committed by GitHub
parent efdf64eb6b
commit 19b033c41f

View File

@@ -133,6 +133,7 @@ public class WxOpenStorageAutoConfiguration {
Config config = new Config();
config.useSingleServer()
.setAddress("redis://" + redis.getHost() + ":" + redis.getPort())
.setDatabase(redis.getDatabase())
.setPassword(redis.getPassword());
config.setTransportMode(TransportMode.NIO);
return Redisson.create(config);