From c00082c48cff4018ccfc8b23b2019f8fca59b723 Mon Sep 17 00:00:00 2001 From: miemieYaho <28334419+miemieYaho@users.noreply.github.com> Date: Thu, 12 Nov 2026 17:32:15 +0800 Subject: [PATCH 1/8] =?UTF-8?q?fix(wx-java-mp):=20=E5=AF=B9=E9=BD=90=20Min?= =?UTF-8?q?iApp=20=E7=9A=84=20Redis=20host=20=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring/starter/wxjava/mp/properties/RedisProperties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..2e828c6b4c 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 @@ -17,7 +17,7 @@ public class RedisProperties implements Serializable { /** * 主机地址. */ - private String host = "127.0.0.1"; + private String host; /** * 端口号. From 1beb7033b7a92e34999f7908aa8743718a2affc0 Mon Sep 17 00:00:00 2001 From: miemieYaho <28334419+miemieYaho@users.noreply.github.com> Date: Thu, 12 Nov 2026 18:39:24 +0800 Subject: [PATCH 2/8] =?UTF-8?q?docs(wx-java-mp):=20=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E7=9C=81=E7=95=A5=20Redis=20host=20=E6=97=B6=E7=9A=84=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=E5=A4=8D=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx-java-mp-spring-boot-starter/README.md | 14 +++++++++----- .../wxjava/mp/properties/RedisProperties.java | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) 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..c0e83e945c 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 @@ -18,11 +18,13 @@ wx.mp.token=@token wx.mp.aes-key=@aesKey wx.mp.use-stable-access-token=@useStableAccessToken - # 存储配置redis(可选) - 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 - wx.mp.config-storage.redis.port=6379 + # 存储类型(可选):Memory(默认)、Jedis、RedisTemplate、Redisson + wx.mp.config-storage.type=Memory + # Redis 键前缀(默认 wx) + wx.mp.config-storage.key-prefix=wx + # 使用独立 Redis 连接时显式配置 host + # wx.mp.config-storage.redis.host=127.0.0.1 + # wx.mp.config-storage.redis.port=6379 #单机和sentinel同时存在时,优先使用sentinel配置 #wx.mp.config-storage.redis.sentinel-ips=127.0.0.1:16379,127.0.0.1:26379 #wx.mp.config-storage.redis.sentinel-name=mymaster @@ -37,6 +39,8 @@ #wx.mp.hosts.open-host=http://proxy.com/ #wx.mp.hosts.mp-host=http://proxy.com/ ``` + 选择 `Redisson` 或 `Jedis` 时,`wx.mp.config-storage.redis.host` 默认未设置。省略该配置会按类型复用应用提供的 `RedissonClient` 或 `JedisPool` Bean。应用需要提供对应的 Bean,否则 Starter 会在启动时因找不到客户端而失败。显式配置 host 时,Starter 会创建公众号专用客户端或连接池。 + 3. 自动注入的类型 - `WxMpService` 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 2e828c6b4c..e3c54b25be 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,7 +15,7 @@ public class RedisProperties implements Serializable { private static final long serialVersionUID = -5924815351660074401L; /** - * 主机地址. + * 主机地址。Jedis 或 Redisson 模式下省略时,复用应用提供的相应客户端 Bean。 */ private String host; From 8e9a05809cb43454ea54bb411ce0e36a49342924 Mon Sep 17 00:00:00 2001 From: miemieYaho <28334419+miemieYaho@users.noreply.github.com> Date: Thu, 12 Nov 2026 18:41:59 +0800 Subject: [PATCH 3/8] =?UTF-8?q?docs(wx-java-mp):=20=E5=AF=B9=E9=BD=90=20Mi?= =?UTF-8?q?niApp=20=E7=9A=84=20host=20=E6=B3=A8=E9=87=8A=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring/starter/wxjava/mp/properties/RedisProperties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e3c54b25be..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,7 +15,7 @@ public class RedisProperties implements Serializable { private static final long serialVersionUID = -5924815351660074401L; /** - * 主机地址。Jedis 或 Redisson 模式下省略时,复用应用提供的相应客户端 Bean。 + * 主机地址.不填则从spring容器内获取JedisPool或RedissonClient */ private String host; From 59fee10000bd0ae91ff5562b2157bd2a46d66724 Mon Sep 17 00:00:00 2001 From: miemieYaho <28334419+miemieYaho@users.noreply.github.com> Date: Thu, 12 Nov 2026 18:43:41 +0800 Subject: [PATCH 4/8] =?UTF-8?q?docs(wx-java-mp):=20=E4=BB=85=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=20Redis=20host=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wx-java-mp-spring-boot-starter/README.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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 c0e83e945c..0461b72658 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 @@ -18,13 +18,11 @@ wx.mp.token=@token wx.mp.aes-key=@aesKey wx.mp.use-stable-access-token=@useStableAccessToken - # 存储类型(可选):Memory(默认)、Jedis、RedisTemplate、Redisson - wx.mp.config-storage.type=Memory - # Redis 键前缀(默认 wx) - wx.mp.config-storage.key-prefix=wx - # 使用独立 Redis 连接时显式配置 host - # wx.mp.config-storage.redis.host=127.0.0.1 - # wx.mp.config-storage.redis.port=6379 + # 存储配置redis(可选) + 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 # 可选,Jedis/Redisson 模式省略时需提供对应的 JedisPool/RedissonClient Bean + wx.mp.config-storage.redis.port=6379 #单机和sentinel同时存在时,优先使用sentinel配置 #wx.mp.config-storage.redis.sentinel-ips=127.0.0.1:16379,127.0.0.1:26379 #wx.mp.config-storage.redis.sentinel-name=mymaster @@ -39,8 +37,6 @@ #wx.mp.hosts.open-host=http://proxy.com/ #wx.mp.hosts.mp-host=http://proxy.com/ ``` - 选择 `Redisson` 或 `Jedis` 时,`wx.mp.config-storage.redis.host` 默认未设置。省略该配置会按类型复用应用提供的 `RedissonClient` 或 `JedisPool` Bean。应用需要提供对应的 Bean,否则 Starter 会在启动时因找不到客户端而失败。显式配置 host 时,Starter 会创建公众号专用客户端或连接池。 - 3. 自动注入的类型 - `WxMpService` From 86909b94bba43f68589eae4838b01d0ea4bc9b7a Mon Sep 17 00:00:00 2001 From: miemieYaho <28334419+miemieYaho@users.noreply.github.com> Date: Thu, 12 Nov 2026 18:45:42 +0800 Subject: [PATCH 5/8] =?UTF-8?q?docs(wx-java-mp):=20=E6=98=8E=E7=A1=AE=20Re?= =?UTF-8?q?dis=20host=20=E9=BB=98=E8=AE=A4=E6=9C=AA=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-boot-starters/wx-java-mp-spring-boot-starter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0461b72658..85bc848e53 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 @@ -21,7 +21,7 @@ # 存储配置redis(可选) 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 # 可选,Jedis/Redisson 模式省略时需提供对应的 JedisPool/RedissonClient Bean + #wx.mp.config-storage.redis.host # 默认不配置,Jedis/Redisson 模式复用容器中的 JedisPool/RedissonClient Bean wx.mp.config-storage.redis.port=6379 #单机和sentinel同时存在时,优先使用sentinel配置 #wx.mp.config-storage.redis.sentinel-ips=127.0.0.1:16379,127.0.0.1:26379 From fa3c309497d280ee74333cabfb8d812e4b0f77eb Mon Sep 17 00:00:00 2001 From: miemieYaho <28334419+miemieYaho@users.noreply.github.com> Date: Thu, 12 Nov 2026 18:47:14 +0800 Subject: [PATCH 6/8] =?UTF-8?q?docs(wx-java-mp):=20=E5=9C=A8=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E5=90=8E=E8=AF=B4=E6=98=8E=20Redis=20host?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-boot-starters/wx-java-mp-spring-boot-starter/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 85bc848e53..0b6d4cc886 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 @@ -21,7 +21,6 @@ # 存储配置redis(可选) wx.mp.config-storage.type= edis # 配置类型: Memory(默认), Jedis, RedisTemplate wx.mp.config-storage.key-prefix=wx # 相关redis前缀配置: wx(默认) - #wx.mp.config-storage.redis.host # 默认不配置,Jedis/Redisson 模式复用容器中的 JedisPool/RedissonClient Bean wx.mp.config-storage.redis.port=6379 #单机和sentinel同时存在时,优先使用sentinel配置 #wx.mp.config-storage.redis.sentinel-ips=127.0.0.1:16379,127.0.0.1:26379 @@ -37,6 +36,9 @@ #wx.mp.hosts.open-host=http://proxy.com/ #wx.mp.hosts.mp-host=http://proxy.com/ ``` + + `wx.mp.config-storage.redis.host` 默认不配置。Jedis 模式复用容器中的 `JedisPool`,Redisson 模式复用容器中的 `RedissonClient`。 + 3. 自动注入的类型 - `WxMpService` From 11eeca86e70755998867e18c50863cc95cdd29c6 Mon Sep 17 00:00:00 2001 From: miemieYaho <28334419+miemieYaho@users.noreply.github.com> Date: Thu, 12 Nov 2026 18:49:21 +0800 Subject: [PATCH 7/8] =?UTF-8?q?docs(wx-java-mp):=20=E6=8C=89=20MiniApp=20?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E6=B3=A8=E6=98=8E=20Redis=20host?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-boot-starters/wx-java-mp-spring-boot-starter/README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 0b6d4cc886..515c80c1ba 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.port=6379 @@ -36,9 +37,6 @@ #wx.mp.hosts.open-host=http://proxy.com/ #wx.mp.hosts.mp-host=http://proxy.com/ ``` - - `wx.mp.config-storage.redis.host` 默认不配置。Jedis 模式复用容器中的 `JedisPool`,Redisson 模式复用容器中的 `RedissonClient`。 - 3. 自动注入的类型 - `WxMpService` From 83658206ddad2a9a22996f40fc35f18030281ff2 Mon Sep 17 00:00:00 2001 From: miemieYaho <28334419+miemieYaho@users.noreply.github.com> Date: Thu, 12 Nov 2026 18:50:16 +0800 Subject: [PATCH 8/8] =?UTF-8?q?docs(wx-java-mp):=20=E4=BF=9D=E7=95=99=20Re?= =?UTF-8?q?dis=20host=20=E9=85=8D=E7=BD=AE=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spring-boot-starters/wx-java-mp-spring-boot-starter/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 515c80c1ba..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,9 +19,10 @@ wx.mp.aes-key=@aesKey wx.mp.use-stable-access-token=@useStableAccessToken # 存储配置redis(可选) - # 注意: redis.host 默认不配置,Jedis/Redisson 模式分别复用容器中的 JedisPool/RedissonClient + # 注意: 下方 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 wx.mp.config-storage.redis.port=6379 #单机和sentinel同时存在时,优先使用sentinel配置 #wx.mp.config-storage.redis.sentinel-ips=127.0.0.1:16379,127.0.0.1:26379