补充miniapp、open模块Apache HttpClient 5.x实现,将多个模块服务迁移至Apache HttpClient 5.x客户端实现#3834
Merged
binarywang merged 3 commits intobinarywang:developfrom Jan 8, 2026
Merged
补充miniapp、open模块Apache HttpClient 5.x实现,将多个模块服务迁移至Apache HttpClient 5.x客户端实现#3834binarywang merged 3 commits intobinarywang:developfrom
binarywang merged 3 commits intobinarywang:developfrom
Conversation
🤖 Augment PR SummarySummary: This PR completes the Apache HttpClient 5.x (HttpComponents) migration for MiniApp/Open and makes HttpComponents the default in more modules.
🤖 Was this summary useful? React with 👍 or 👎 |
...java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenServiceHttpComponentsImpl.java
Show resolved
Hide resolved
...er/src/main/java/com/binarywang/spring/starter/wxjava/miniapp/properties/WxMaProperties.java
Show resolved
Hide resolved
There was a problem hiding this comment.
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 |
...plugin/src/main/java/com/binarywang/solon/wxjava/mp/config/WxMpServiceAutoConfiguration.java
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.