From 865f162fe29070fa57c12a51d4d8d5711ac72f0d Mon Sep 17 00:00:00 2001 From: foreveryang321 Date: Wed, 14 Aug 2024 08:07:28 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20yaml=20=E6=9C=AA?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=8F=90=E7=A4=BA=20hosts=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spring/starter/wxjava/mp/properties/WxMpProperties.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/WxMpProperties.java b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/WxMpProperties.java index c4c97c4026..a01fc0a521 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/WxMpProperties.java +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/WxMpProperties.java @@ -40,7 +40,7 @@ public class WxMpProperties { * 设置微信公众号的EncodingAESKey. */ private String aesKey; - + /** * 是否使用稳定版 Access Token */ @@ -49,6 +49,7 @@ public class WxMpProperties { /** * 自定义host配置 */ + @NestedConfigurationProperty private HostConfig hosts; /** From c2cf419fe83dbbb1ed105028e0d1bb29a87d65a0 Mon Sep 17 00:00:00 2001 From: foreveryang321 Date: Wed, 14 Aug 2024 08:13:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wxjava/mp/properties/WxMpMultiProperties.java | 9 +++++++++ .../spring/starter/wxjava/mp/properties/HostConfig.java | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/spring-boot-starters/wx-java-mp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/WxMpMultiProperties.java b/spring-boot-starters/wx-java-mp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/WxMpMultiProperties.java index 7e8949d1bd..c0d331382f 100644 --- a/spring-boot-starters/wx-java-mp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/WxMpMultiProperties.java +++ b/spring-boot-starters/wx-java-mp-multi-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/WxMpMultiProperties.java @@ -37,10 +37,19 @@ public class WxMpMultiProperties implements Serializable { public static class HostConfig implements Serializable { private static final long serialVersionUID = -4172767630740346001L; + /** + * 对应于:https://api.weixin.qq.com + */ private String apiHost; + /** + * 对应于:https://open.weixin.qq.com + */ private String openHost; + /** + * 对应于:https://mp.weixin.qq.com + */ private String mpHost; } diff --git a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/HostConfig.java b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/HostConfig.java index b8c0f1594f..5b29400738 100644 --- a/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/HostConfig.java +++ b/spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/HostConfig.java @@ -9,10 +9,19 @@ public class HostConfig implements Serializable { private static final long serialVersionUID = -4172767630740346001L; + /** + * 对应于:https://api.weixin.qq.com + */ private String apiHost; + /** + * 对应于:https://open.weixin.qq.com + */ private String openHost; + /** + * 对应于:https://mp.weixin.qq.com + */ private String mpHost; }