Skip to content

Commit 26ba117

Browse files
ettingshausenbinarywang
authored andcommitted
fix issue binarywang#17 and add configuration metadata (binarywang#18)
* fix issue binarywang#17 * add configuration metadata
1 parent c51e792 commit 26ba117

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@
6767
<artifactId>jedis</artifactId>
6868
<version>2.9.0</version>
6969
</dependency>
70+
71+
<dependency>
72+
<groupId>org.springframework.boot</groupId>
73+
<artifactId>spring-boot-configuration-processor</artifactId>
74+
<optional>true</optional>
75+
</dependency>
7076
</dependencies>
7177

7278
</project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"properties": [
3+
{
4+
"name": "wx.mp.configs",
5+
"type": "java.util.List",
6+
"description": "Description for wx.mp.configs. https://github.com/ettingshausen/weixin-java-mp-demo-springboot/blob/master/README.md."
7+
}
8+
]
9+
}

src/main/resources/application.yml.template

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ logging:
55
me.chanjar.weixin: DEBUG
66
wx:
77
mp:
8-
- appId: 11
9-
secret: 11
10-
token: 11
11-
aesKey: 11
12-
- appId: 22
13-
secret: 11
14-
token: 11
15-
aesKey: 11
8+
configs:
9+
- appId: 1111 (一个公众号的appid)
10+
secret: 1111(公众号的appsecret)
11+
token: 111 (接口配置里的Token值)
12+
aesKey: 111 (接口配置里的EncodingAESKey值)
13+
- appId: 2222 (另一个公众号的appid,以下同上)
14+
secret: 1111
15+
token: 111
16+
aesKey: 111

0 commit comments

Comments
 (0)