Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 28, 2025

Spring Boot 3 强制使用 httpclient5,而当前 starter 仅支持 httpclient4,导致升级后无法运行。核心库已有 WxMpServiceHttpComponentsImpl 实现,本 PR 为 starter 暴露该选项。

修改内容

  • wx-java-mp-spring-boot-starter

    • HttpClientType 枚举添加 HttpComponents
    • WxMpServiceAutoConfiguration 添加对应 case 分支
    • pom.xml 添加 httpclient5 依赖 (scope: provided)
  • wx-java-mp-multi-spring-boot-starter

    • pom.xml 添加 httpclient5 依赖(代码已支持 HTTP_COMPONENTS

使用方法

wx:
  mp:
    config-storage:
      http-client-type: HttpComponents
Original prompt

This section details on the original issue you should resolve

<issue_title>wx-java-mp-spring-boot-starter什么时候支持springboot3?</issue_title>
<issue_description>
CVE-2024-38816这个漏洞导致项目需要升级springboot3。

wx-java-mp-spring-boot-starter里用了httpclient4,而springboot3强制使用httpclient5,导致升级后无法运行。

什么时候会适配呢?
</issue_description>

Comments on the Issue (you are @copilot in this section)

@binarywang 你可以尝试升级看看,如果没问题,欢迎提交PR上来,谢谢

Custom agent used: 自定义的
需要用中文


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 28, 2025 14:02
…兼容 Spring Boot 3

Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for Spring Boot 3 in wx-java-mp-starter 为 wx-java-mp-spring-boot-starter 添加 HttpComponents (httpclient5) 支持 Nov 28, 2025
Copilot AI requested a review from binarywang November 28, 2025 14:06
Copilot finished work on behalf of binarywang November 28, 2025 14:06
@binarywang
Copy link
Owner

@copilot WxMpServiceHttpComponentsImpl 这个类是存在的吗?你是不是得先实现这个类

Copy link
Contributor Author

Copilot AI commented Nov 28, 2025

@copilot WxMpServiceHttpComponentsImpl 这个类是存在的吗?你是不是得先实现这个类

WxMpServiceHttpComponentsImpl 类已存在于 weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpServiceHttpComponentsImpl.java,是由 @altusea 实现的基于 Apache HttpClient 5.x 的完整实现。本 PR 只是为 Spring Boot Starter 暴露了这个已有的实现选项。

Copilot finished work on behalf of binarywang November 28, 2025 14:14
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.

wx-java-mp-spring-boot-starter什么时候支持springboot3?

2 participants