-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1577 from Wechat-Group/develop
合并Develop分支,发布正式版本
- Loading branch information
Showing
284 changed files
with
10,153 additions
and
1,545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 29 additions & 20 deletions
49
spring-boot-starters/wx-java-miniapp-spring-boot-starter/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
# 使用说明 | ||
1. 在自己的Spring Boot项目里,引入maven依赖 | ||
```xml | ||
# wx-java-miniapp-spring-boot-starter | ||
## 快速开始 | ||
1. 引入依赖 | ||
```xml | ||
<dependency> | ||
<groupId>com.github.binarywang</groupId> | ||
<artifactId>wx-java-miniapp-spring-boot-starter</artifactId> | ||
<version>${version}</version> | ||
</dependency> | ||
``` | ||
2. 添加配置(application.yml) | ||
```yml | ||
wx: | ||
miniapp: | ||
appid: 111 | ||
secret: 111 | ||
token: 111 | ||
aesKey: 111 | ||
msgDataFormat: JSON | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
|
||
``` | ||
2. 添加配置(application.properties) | ||
```properties | ||
# 公众号配置(必填) | ||
wx.miniapp.appid = appId | ||
wx.miniapp.secret = @secret | ||
wx.miniapp.token = @token | ||
wx.miniapp.aesKey = @aesKey | ||
wx.miniapp.msgDataFormat = @msgDataFormat # 消息格式,XML或者JSON. | ||
# 存储配置redis(可选) | ||
# 注意: 指定redis.host值后不会使用容器注入的redis连接(JedisPool) | ||
wx.miniapp.config-storage.type = jedis # 配置类型: memory(默认), jedis, redistemplate | ||
wx.miniapp.config-storage.key-prefix = wa # 相关redis前缀配置: wa(默认) | ||
wx.miniapp.config-storage.redis.host = 127.0.0.1 | ||
wx.miniapp.config-storage.redis.port = 6379 | ||
# http客户端配置 | ||
wx.miniapp.config-storage.http-client-type=httpclient # http客户端类型: httpclient(默认) | ||
wx.miniapp.config-storage.http-proxy-host= | ||
wx.miniapp.config-storage.http-proxy-port= | ||
wx.miniapp.config-storage.http-proxy-username= | ||
wx.miniapp.config-storage.http-proxy-password= | ||
``` | ||
3. 自动注入的类型 | ||
- `WxMaService` | ||
- `WxMaConfig` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.