diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md b/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md index 091912cfad..ca43ef5d78 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md @@ -19,6 +19,7 @@ wx.mp.aes-key=@aesKey wx.mp.use-stable-access-token=@useStableAccessToken # 存储配置redis(可选) + # 注意: 下方 redis.host 仅为显式配置示例,默认不配置。省略时,Jedis/Redisson 模式分别复用容器中的 JedisPool/RedissonClient wx.mp.config-storage.type= edis # 配置类型: Memory(默认), Jedis, RedisTemplate wx.mp.config-storage.key-prefix=wx # 相关redis前缀配置: wx(默认) wx.mp.config-storage.redis.host=127.0.0.1 diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/RedisProperties.java b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/RedisProperties.java index 573c87630f..38870a1618 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/RedisProperties.java +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/RedisProperties.java @@ -15,9 +15,9 @@ public class RedisProperties implements Serializable { private static final long serialVersionUID = -5924815351660074401L; /** - * 主机地址. + * 主机地址.不填则从spring容器内获取JedisPool或RedissonClient */ - private String host = "127.0.0.1"; + private String host; /** * 端口号.