binarywang/weixin-java-mp-demo

redis 配置的问题

shaohongwu opened this issue · 2 comments

wx:
mp:
useRedis: true
redisConfig:
host: 127.0.0.1
port: 6379

我使用这个配置发现redis 一直有问题,最后跟踪发下是 WxMpConfiguration.java 有问题,
timeout设置为-1,JedisPool 里面的connectionTimeout 也是-1, 导致一直不能使用:
connect: timeout can't be negative

a960d896805064120bc3bf7f0e5c869

自己更改即可

已更新