Skip to content

Commit

Permalink
🎨 #1756 解决wx-java-open-spring-boot-starter中Redisson实现缺少database设置的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
stoneliu-coder authored Sep 12, 2020
1 parent efdf64e commit 19b033c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ private RedissonClient getRedissonClient() {
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);
Expand Down

0 comments on commit 19b033c

Please sign in to comment.