From 25a332823a62134872d164dfecf2a7a01691b185 Mon Sep 17 00:00:00 2001 From: moil-xm <64048303+moil-xm@users.noreply.github.com> Date: Fri, 5 Jun 2026 18:21:43 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=20Solon=20=E7=89=88?= =?UTF-8?q?=20wx-java-mp=20=E5=9C=A8=E6=9C=AA=E6=98=BE=E5=BC=8F=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=20Redis=20host=20=E6=97=B6=E6=97=A0=E6=B3=95=E5=9B=9E?= =?UTF-8?q?=E9=80=80=E5=88=B0=E7=94=A8=E6=88=B7=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=20RedissonClient=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../storage/WxMpInRedissonConfigStorageConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solon-plugins/wx-java-mp-solon-plugin/src/main/java/com/binarywang/solon/wxjava/mp/config/storage/WxMpInRedissonConfigStorageConfiguration.java b/solon-plugins/wx-java-mp-solon-plugin/src/main/java/com/binarywang/solon/wxjava/mp/config/storage/WxMpInRedissonConfigStorageConfiguration.java index c1f5ebf0f..7121f2d70 100644 --- a/solon-plugins/wx-java-mp-solon-plugin/src/main/java/com/binarywang/solon/wxjava/mp/config/storage/WxMpInRedissonConfigStorageConfiguration.java +++ b/solon-plugins/wx-java-mp-solon-plugin/src/main/java/com/binarywang/solon/wxjava/mp/config/storage/WxMpInRedissonConfigStorageConfiguration.java @@ -36,9 +36,9 @@ public class WxMpInRedissonConfigStorageConfiguration extends AbstractWxMpConfig } private WxMpRedissonConfigImpl getWxMpInRedissonConfigStorage() { - RedisProperties redisProperties = properties.getConfigStorage().getRedis(); + String configuredHost = applicationContext.cfg().get(WxMpProperties.PREFIX + ".config-storage.redis.host"); RedissonClient redissonClient; - if (redisProperties != null && StringUtils.isNotEmpty(redisProperties.getHost())) { + if (StringUtils.isNotEmpty(configuredHost)) { redissonClient = applicationContext.getBean("wxMpRedissonClient"); } else { redissonClient = applicationContext.getBean(RedissonClient.class);