Skip to content

Commit

Permalink
fix issue binarywang#17 and add configuration metadata (binarywang#18)
Browse files Browse the repository at this point in the history
* fix issue binarywang#17

* add configuration metadata
  • Loading branch information
ettingshausen authored and binarywang committed Aug 31, 2018
1 parent c51e792 commit 26ba117
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
<artifactId>jedis</artifactId>
<version>2.9.0</version>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"properties": [
{
"name": "wx.mp.configs",
"type": "java.util.List",
"description": "Description for wx.mp.configs. https://github.com/ettingshausen/weixin-java-mp-demo-springboot/blob/master/README.md."
}
]
}
17 changes: 9 additions & 8 deletions src/main/resources/application.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ logging:
me.chanjar.weixin: DEBUG
wx:
mp:
- appId: 11
secret: 11
token: 11
aesKey: 11
- appId: 22
secret: 11
token: 11
aesKey: 11
configs:
- appId: 1111 (一个公众号的appid)
secret: 1111(公众号的appsecret)
token: 111 (接口配置里的Token值)
aesKey: 111 (接口配置里的EncodingAESKey值)
- appId: 2222 (另一个公众号的appid,以下同上)
secret: 1111
token: 111
aesKey: 111

0 comments on commit 26ba117

Please sign in to comment.