测试配置中增加证书文件路径的设置

This commit is contained in:
Binary Wang
2016-12-29 19:00:32 +08:00
parent 7363574a36
commit 013da38f00
2 changed files with 17 additions and 15 deletions

View File

@ -19,6 +19,7 @@ public class ApiTestModule implements Module {
WxXmlMpInMemoryConfigStorage config = this
.fromXml(WxXmlMpInMemoryConfigStorage.class, is1);
config.setAccessTokenLock(new ReentrantLock());
config.setSslContextFilePath(config.getKeyPath());
WxMpService wxService = new WxMpServiceImpl();
wxService.setWxMpConfigStorage(config);

View File

@ -8,6 +8,7 @@
<openid>某个加你公众号的用户的openId</openid>
<partnerId>微信商户平台ID</partnerId>
<partnerKey>商户平台设置的API密钥</partnerKey>
<keyPath>商户平台的证书文件地址</keyPath>
<templateId>模版消息的模版ID</templateId>
<oauth2redirectUri>网页授权获取用户信息回调地址</oauth2redirectUri>
<qrconnectRedirectUrl>网页应用授权登陆回调地址</qrconnectRedirectUrl>