-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WxMpInRedisConfigStorage多线程复用jedis,导致异常 #335
Comments
binarywang
pushed a commit
that referenced
this issue
Sep 13, 2017
2.8.1.BETA版本已修复 |
comeonc
added a commit
to comeonc/weixin-java-tools
that referenced
this issue
Oct 9, 2018
…nto develop * 'develop' of github.com:Wechat-Group/weixin-java-tools: (132 commits) 发布临时测试版本2.8.1.BETA 修正一个错误的类属性命名 修复单元测试 清理代码 pay模块显式指定commons-lang3,以便用户项目可能会优先使用所依赖设置的版本 清理代码,避免过度依赖容易引起冲突的类库代码 精简代码 Fix issue binarywang#335: 重构WxMpInRedisConfigStorage,改用连接池 binarywang#136 修复WxMenuRule反序列化的问题tag_id为空的问题 Update readme.md Update readme.md 修改版本号为正式版本2.8.0 binarywang#320 增加“拉取订单评价数据“接口方法 binarywang#319 增加“退款结果通知“处理方法,并优化调整微信支付相关代码 binarywang#322 为me.chanjar.weixin.mp.bean下的bean类实现Serializable接口,并增加serialVersionUID binarywang#324: 修复分布式刷新access_token冲突问题 binarywang#324: 修复分布式刷新access_token冲突问题 微信支付增加获取微信的请求和响应数据的方法getWxApiData(),方便使用者获取使用该数据 微信支付优化部分代码,方便扩展 微信支付接口抽取部分常量 ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/Wechat-Group/weixin-java-tools/blob/2b019f15cb8116e63166aef8bc42e0c88dcf5f15/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpInRedisConfigStorage.java#L19-L24
https://github.com/Wechat-Group/weixin-java-tools/blob/2b019f15cb8116e63166aef8bc42e0c88dcf5f15/weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpInRedisConfigStorage.java#L87-L89
jedis对象是非线程安全的,多次使用导致异常的出现
建议改写成jedisPool连接池的方式
晚点提个PR
The text was updated successfully, but these errors were encountered: