Comments (4)
能否介绍下你真正的需求,你使用 wechatpay-apache-httpclient 的场景和方式,以便于我们针对建议或者提供合适的解决方案。
from wechatpay-apache-httpclient.
目前报错的这行代码是由于升级spring 6.0导致的。
由于[spring-web-6.0.2]中的HttpComponentsClientHttpRequestFactory仅支持使用org.apache.hc.client5包下的HttpClient构造生成;
而[wechatpay-apache-httpclient]包支持的HttpClient则是org.apache.http.client包下的HttpClient,所以导致了上述代码报错。
麻烦看一下有什么解决方案?
from wechatpay-apache-httpclient.
将 wechatpay-apache-httpclient 升级到 httpclient5 可能不是好的方案,我们还有很多使用 httpclient4 的开发者。
长期的方案,我们考虑在 wechatpay-java 中提供适配,支持 spring 的 HttpClient。
短期,如果要用 wechatpay-apache-httpclient 只能建议你先暂时别升级 spring6。
也建议你试试 wechatpay-java,直接调用我们封装好的业务接口更方便。如果你有什么疑问或者不方便使用 wechatpay-java 的地方,请告诉我们。
from wechatpay-apache-httpclient.
好的,谢谢,那目前暂时不能进行spring6版本升级了。
若时间充裕时我再将SDK重构成 wechatpay-java,完成该步骤后再进行spring6版本升级。
from wechatpay-apache-httpclient.
Related Issues (20)
- 支付回调验签报错 HOT 2
- 使用时Verifier没有办法初始化在springboot中 HOT 2
- 吊毛写的什么够吧文档
- 下单按照文档的格式写,遇到报错:Http头Authorization值格式错误,请参考《微信支付商户REST API签名规则》 HOT 2
- 是否考虑做个wechatpay-apache-httpasyncclient或支持异步通讯
- 视频上传问题 HOT 2
- jackson版本过低不兼容wechatpay-apache-httpclient0.4.9 HOT 1
- NotificationHandlerTest.java示例可能不够清晰 HOT 1
- prepay 提交 PrepayRequest 提示sub_mch_id HOT 1
- 证书自动更新里面写死的证书接口地址,内网服务器无法访问 HOT 1
- Caused by: java.util.concurrent.CancellationException: Operation aborted HOT 1
- 奇怪bug复现 HOT 3
- 使用该 sdk 后使用国标加密报错 HOT 2
- 接入APIV3获取证书 HOT 33
- 使用Notification对象验签之后 lombok的@Slf4j注解生成的log对象无法打印任何日志 HOT 1
- API_v3定时更新证书功能 HOT 2
- 能对接一下那个v3 Native支付问题吗
- 你好,请问下为啥一直是验签失败呢,参数都按照文档配置了
- 上传图片的uri错误了
- [BUG] 下载平台证书时遇到网络问题阻塞,导致大量线程等待
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechatpay-apache-httpclient.