From 39a152b1fb2e39b746286ff48a7b12c31be555b3 Mon Sep 17 00:00:00 2001 From: foreveryang321 <453190450@qq.com> Date: Thu, 15 Aug 2024 22:10:33 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=AE=8C=E5=96=84=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=B3=A8=E9=87=8A=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=20yaml=20=E6=9C=AA=E8=87=AA=E5=8A=A8=E6=8F=90=E7=A4=BA=20hosts?= =?UTF-8?q?=20=E9=85=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= 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 +++++++++ .../starter/wxjava/mp/properties/WxMpProperties.java | 3 ++- 3 files changed, 20 insertions(+), 1 deletion(-) 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; } 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; /**