8000 format spelling · Dream2Land/WxJava@8a2e7ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 8a2e7ce

Browse files
committed
format spelling
format spelling
1 parent 6788d6e commit 8a2e7ce

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

spring-boot-starters/wx-java-mp-spring-boot-starter/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121
wx.mp.config-storage.redis.host = 127.0.0.1
2222
wx.mp.config-storage.redis.port = 6379
2323
#单机和sentinel同时存在时,优先使用sentinel配置
24-
#wx.mp.config-storage.redis.sentinelips=127.0.0.1:16379,127.0.0.1:26379
25-
#wx.mp.config-storage.redis.sentinelname=mymaster
24+
#wx.mp.config-storage.redis.sentinel-ips=127.0.0.1:16379,127.0.0.1:26379
25+
#wx.mp.config-storage.redis.sentinel-name=mymaster
2626
# http客户端配置
2727
wx.mp.config-storage.http-client-type=httpclient # http客户端类型: HttpClient(默认), OkHttp, JoddHttp
2828
wx.mp.config-storage.http-proxy-host=
2929
wx.mp.config-storage.http-proxy-port=
3030
wx.mp.config-storage.http-proxy-username=
3131
wx.mp.config-storage.http-proxy-password=
3232
# 公众号地址host配置
33-
#wx.mp.hosts.apihost=http://proxy.com/
34-
#wx.mp.hosts.openhost=http://proxy.com/
35-
#wx.mp.hosts.mphost=http://proxy.com/
33+
#wx.mp.hosts.api-host=http://proxy.com/
34+
#wx.mp.hosts.open-host=http://proxy.com/
35+
#wx.mp.hosts.mp-host=http://proxy.com/
3636
```
3737
3. 自动注入的类型
3838
- `WxMpService`以及~~相关的服务类, 比如: `wxMpService.getXxxService`。~~

spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/config/WxMpStorageAutoConfiguration.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ public WxMpConfigStorage wxMpConfigStorage() {
6363
break;
6464
}
6565
// wx host config
66-
if (null != wxMpProperties.getHosts() && StringUtils.isNotEmpty(wxMpProperties.getHosts().getApihost())) {
66+
if (null != wxMpProperties.getHosts() && StringUtils.isNotEmpty(wxMpProperties.getHosts().getApiHost())) {
6767
WxMpHostConfig hostConfig = new WxMpHostConfig();
68-
hostConfig.setApiHost(wxMpProperties.getHosts().getApihost());
69-
hostConfig.setMpHost(wxMpProperties.getHosts().getMphost());
70-
hostConfig.setOpenHost(wxMpProperties.getHosts().getOpenhost());
68+
hostConfig.setApiHost(wxMpProperties.getHosts().getApiHost());
69+
hostConfig.setMpHost(wxMpProperties.getHosts().getMpHost());
70+
hostConfig.setOpenHost(wxMpProperties.getHosts().getOpenHost());
7171
config.setHostConfig(hostConfig);
7272
}
7373
return config;
@@ -137,9 +137,9 @@ private JedisPoolAbstract getJedisPool() {
137137
}
138138
config.setTestOnBorrow(true);
139139
config.setTestWhileIdle(true);
140-
if (StringUtils.isNotEmpty(redis.getSentinelips())) {
141-
Set<String> sentinels = Sets.newHashSet(redis.getSentinelips().split(","));
142-
return new JedisSentinelPool(redis.getSentinelname(), sentinels);
140+
if (StringUtils.isNotEmpty(redis.getSentinelIps())) {
141+
Set<String> sentinels = Sets.newHashSet(redis.getSentinelIps().split(","));
142+
return new JedisSentinelPool(redis.getSentinelName(), sentinels);
143143
}
144144

145145
return new JedisPool(config, redis.getHost(), redis.getPort(), redis.getTimeout(), redis.getPassword(),

spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/HostConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ public class HostConfig implements Serializable {
99

1010
private static final long serialVersionUID = -4172767630740346001L;
1111

12-
private String apihost;
12+
private String apiHost;
1313

14-
private String openhost;
14+
private String openHost;
1515

16-
private String mphost;
16+
private String mpHost;
1717

1818
}

spring-boot-starters/wx-java-mp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/mp/properties/RedisProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ public class RedisProperties implements Serializable {
4242
/**
4343
* sentinel ips
4444
*/
45-
private String sentinelips;
45+
private String sentinelIps;
4646

4747
/**
4848
* sentinel name
4949
*/
50-
private String sentinelname;
50+
private String sentinelName;
5151

5252
private Integer maxActive;
5353
private Integer maxIdle;

0 commit comments

Comments
 (0)
0