对微信API封装的SDK,便于用户使用
添加依赖
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.trionesdev.weixin</groupId>
<artifactId>weixin-dependencies</artifactId>
<version>版本号</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| appId | 微信appId | String | - |
| secret | 微信secret | String | - |
| multi | 是否支持多个微信 | Boolen | false |
| credentials | 多个微信凭证 | List<WeiXinCredentials> |
- |
| httpLogLevel | HTTP的日志级别(okhttp) | HttpLoggingInterceptor.Level |
- |
| cache | 缓存实现 | com.trionesdev.weixin.base.WeiXinCache |
- |
写一个 com.trionesdev.weixin.base.WeiXinCache的实现类,内部自行进行缓存处理。将对象赋给 WeiXinConfig的cache
留言回复不及时,可以通过关注公众号联系我们
