🎨 完善部分代码注释,修复 yaml 未自动提示 hosts 配置问题

This commit is contained in:
foreveryang321 2024-08-15 22:10:33 +08:00 committed by Binary Wang
parent 606e932647
commit 39a152b1fb
3 changed files with 20 additions and 1 deletions

View File

@ -37,10 +37,19 @@ public class WxMpMultiProperties implements Serializable {
public static class HostConfig implements Serializable { public static class HostConfig implements Serializable {
private static final long serialVersionUID = -4172767630740346001L; private static final long serialVersionUID = -4172767630740346001L;
/**
* 对应于https://api.weixin.qq.com
*/
private String apiHost; private String apiHost;
/**
* 对应于https://open.weixin.qq.com
*/
private String openHost; private String openHost;
/**
* 对应于https://mp.weixin.qq.com
*/
private String mpHost; private String mpHost;
} }

View File

@ -9,10 +9,19 @@ public class HostConfig implements Serializable {
private static final long serialVersionUID = -4172767630740346001L; private static final long serialVersionUID = -4172767630740346001L;
/**
* 对应于https://api.weixin.qq.com
*/
private String apiHost; private String apiHost;
/**
* 对应于https://open.weixin.qq.com
*/
private String openHost; private String openHost;
/**
* 对应于https://mp.weixin.qq.com
*/
private String mpHost; private String mpHost;
} }

View File

@ -40,7 +40,7 @@ public class WxMpProperties {
* 设置微信公众号的EncodingAESKey. * 设置微信公众号的EncodingAESKey.
*/ */
private String aesKey; private String aesKey;
/** /**
* 是否使用稳定版 Access Token * 是否使用稳定版 Access Token
*/ */
@ -49,6 +49,7 @@ public class WxMpProperties {
/** /**
* 自定义host配置 * 自定义host配置
*/ */
@NestedConfigurationProperty
private HostConfig hosts; private HostConfig hosts;
/** /**