Giter Club home page Giter Club logo

Comments (4)

xy-peng avatar xy-peng commented on July 21, 2024

能否介绍下你真正的需求,你使用 wechatpay-apache-httpclient 的场景和方式,以便于我们针对建议或者提供合适的解决方案。

from wechatpay-apache-httpclient.

JiahaoLin2018 avatar JiahaoLin2018 commented on July 21, 2024

image
image
image
image
目前报错的这行代码是由于升级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.

xy-peng avatar xy-peng commented on July 21, 2024

将 wechatpay-apache-httpclient 升级到 httpclient5 可能不是好的方案,我们还有很多使用 httpclient4 的开发者。

长期的方案,我们考虑在 wechatpay-java 中提供适配,支持 spring 的 HttpClient。

短期,如果要用 wechatpay-apache-httpclient 只能建议你先暂时别升级 spring6。

也建议你试试 wechatpay-java,直接调用我们封装好的业务接口更方便。如果你有什么疑问或者不方便使用 wechatpay-java 的地方,请告诉我们。

from wechatpay-apache-httpclient.

JiahaoLin2018 avatar JiahaoLin2018 commented on July 21, 2024

好的,谢谢,那目前暂时不能进行spring6版本升级了。
若时间充裕时我再将SDK重构成 wechatpay-java,完成该步骤后再进行spring6版本升级。

from wechatpay-apache-httpclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.