Skip to content

Conversation

@buaazyl
Copy link
Contributor

@buaazyl buaazyl commented Jan 7, 2026

No description provided.

@augmentcode
Copy link

augmentcode bot commented Jan 7, 2026

🤖 Augment PR Summary

Summary: This PR completes the Apache HttpClient 5.x (HttpComponents) migration for MiniApp/Open and makes HttpComponents the default in more modules.
Key changes:

  • Added HttpComponents (Apache HttpClient 5.x) service implementations for MiniApp and Open modules (WxMaServiceHttpComponentsImpl, WxOpenServiceHttpComponentsImpl).
  • Switched core default service implementations to extend the HttpComponents variants (MiniApp/MP/Qidian/Pay/Channel/Open), making HttpClient 5.x the default client.
  • Updated Solon plugins and Spring Boot starters to support selecting HttpComponents and, in several modules, changed the default httpClientType to HttpComponents.
  • Extended multi-tenant plugin enums to include HTTP_COMPONENTS and wired new switch cases to instantiate the 5.x implementations.
  • Updated the HTTP client upgrade guide to reflect the new defaults (notably MiniApp).
Notes: HttpClient 4.x implementations remain available via explicit configuration, but defaults now bias toward HttpClient 5.x for consistency. Why: Consolidate the SDK on a modern, unified HTTP stack (Apache HttpClient 5.x). Compatibility: If you previously customized HttpClient4 builder/timeout behavior, double-check equivalent behavior under HttpComponents defaults.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 3 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

此 PR 将 miniapp 和 open 模块补充了 Apache HttpClient 5.x 实现,并将多个模块的默认服务实现迁移至 Apache HttpClient 5.x 客户端(HttpComponents)。这是项目从 HttpClient 4.x 迁移到 5.x 的重要步骤。

主要变更包括:

  • 为 miniapp 和 open 模块新增 HttpComponents 5.x 实现类
  • 将 6 个核心模块的默认实现类从 HttpClient 4.x 切换到 HttpComponents 5.x
  • 更新所有相关的 Spring Boot Starter 和 Solon 插件配置,将默认 HTTP 客户端类型改为 HttpComponents
  • 更新升级指南文档以反映新的默认配置

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceHttpComponentsImpl.java 新增小程序模块的 Apache HttpClient 5.x 实现类
weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenServiceHttpComponentsImpl.java 新增开放平台模块的 Apache HttpClient 5.x 实现类
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaServiceImpl.java 将小程序默认实现从 HttpClient 4.x 切换到 HttpComponents 5.x
weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenServiceImpl.java 将开放平台默认实现从 HttpClient 4.x 切换到 HttpComponents 5.x
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpServiceImpl.java 将公众号默认实现从 HttpClient 4.x 切换到 HttpComponents 5.x
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImpl.java 将支付模块默认实现从 HttpClient 4.x 切换到 HttpComponents 5.x
weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelServiceImpl.java 将视频号默认实现从 HttpClient 4.x 切换到 HttpComponents 5.x
weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/api/impl/WxQidianServiceImpl.java 将企点默认实现从 HttpClient 4.x 切换到 HttpComponents 5.x
spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/properties/WxMaProperties.java 将小程序 Spring Boot Starter 的默认 HTTP 客户端类型改为 HttpComponents
spring-boot-starters/wx-java-miniapp-spring-boot-starter/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/config/WxMaServiceAutoConfiguration.java 在小程序 Spring Boot Starter 的自动配置中添加 HttpComponents 类型支持
solon-plugins/wx-java-qidian-solon-plugin/src/main/java/com/binarywang/solon/wxjava/qidian/config/WxQidianServiceAutoConfiguration.java 在企点 Solon 插件中添加 HttpComponents 类型支持
solon-plugins/wx-java-mp-solon-plugin/src/main/java/com/binarywang/solon/wxjava/mp/config/WxMpServiceAutoConfiguration.java 在公众号 Solon 插件中添加 HttpComponents 类型支持
solon-plugins/wx-java-mp-multi-solon-plugin/src/main/java/com/binarywang/solon/wxjava/mp_multi/properties/WxMpMultiProperties.java 在公众号多账号 Solon 插件中添加 HTTP_COMPONENTS 枚举值并更改默认值
solon-plugins/wx-java-mp-multi-solon-plugin/src/main/java/com/binarywang/solon/wxjava/mp_multi/configuration/services/AbstractWxMpConfiguration.java 在公众号多账号配置中添加 HTTP_COMPONENTS 类型支持
solon-plugins/wx-java-miniapp-solon-plugin/src/main/java/com/binarywang/solon/wxjava/miniapp/properties/WxMaProperties.java 将小程序 Solon 插件的默认 HTTP 客户端类型改为 HttpComponents
solon-plugins/wx-java-miniapp-solon-plugin/src/main/java/com/binarywang/solon/wxjava/miniapp/config/WxMaServiceAutoConfiguration.java 在小程序 Solon 插件的自动配置中添加 HttpComponents 类型支持
solon-plugins/wx-java-miniapp-multi-solon-plugin/src/main/java/com/binarywang/solon/wxjava/miniapp/properties/WxMaMultiProperties.java 在小程序多账号 Solon 插件中添加 HTTP_COMPONENTS 枚举值并更改默认值
solon-plugins/wx-java-miniapp-multi-solon-plugin/src/main/java/com/binarywang/solon/wxjava/miniapp/configuration/services/AbstractWxMaConfiguration.java 在小程序多账号配置中添加 HTTP_COMPONENTS 类型支持
solon-plugins/wx-java-cp-multi-solon-plugin/src/main/java/com/binarywang/solon/wxjava/cp_multi/properties/WxCpMultiProperties.java 将企业微信多账号 Solon 插件的默认 HTTP 客户端类型改为 HTTP_COMPONENTS
solon-plugins/wx-java-channel-multi-solon-plugin/src/main/java/com/binarywang/solon/wxjava/channel/properties/WxChannelMultiProperties.java 将视频号多账号 Solon 插件的默认 HTTP 客户端类型改为 HTTP_COMPONENTS
docs/HTTPCLIENT_UPGRADE_GUIDE.md 更新文档以反映小程序模块默认已使用 HttpComponents 5.x,并移除相关的 FAQ

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@binarywang binarywang merged commit 2c5a339 into binarywang:develop Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants