🎨 #3834 【基础架构】小程序和开放平台两个模块补充了 Apache HttpClient 5.x 实现,同时并将多个模块的默认服务实现迁移至 Apache HttpClient 5.x 客户端

This commit is contained in:
buaazyl
2026-01-08 15:08:58 +08:00
committed by GitHub
parent e572ddfba6
commit 2c5a33917e
21 changed files with 233 additions and 22 deletions

View File

@@ -4,6 +4,7 @@ import com.binarywang.solon.wxjava.qidian.enums.HttpClientType;
import com.binarywang.solon.wxjava.qidian.properties.WxQidianProperties;
import me.chanjar.weixin.qidian.api.WxQidianService;
import me.chanjar.weixin.qidian.api.impl.WxQidianServiceHttpClientImpl;
import me.chanjar.weixin.qidian.api.impl.WxQidianServiceHttpComponentsImpl;
import me.chanjar.weixin.qidian.api.impl.WxQidianServiceImpl;
import me.chanjar.weixin.qidian.api.impl.WxQidianServiceJoddHttpImpl;
import me.chanjar.weixin.qidian.api.impl.WxQidianServiceOkHttpImpl;
@@ -35,6 +36,9 @@ public class WxQidianServiceAutoConfiguration {
case HttpClient:
wxQidianService = newWxQidianServiceHttpClientImpl();
break;
case HttpComponents:
wxQidianService = newWxQidianServiceHttpComponentsImpl();
break;
default:
wxQidianService = newWxQidianServiceImpl();
break;
@@ -60,4 +64,8 @@ public class WxQidianServiceAutoConfiguration {
return new WxQidianServiceJoddHttpImpl();
}
private WxQidianService newWxQidianServiceHttpComponentsImpl() {
return new WxQidianServiceHttpComponentsImpl();
}
}