1
0
mirror of synced 2026-02-06 18:27:53 +08:00

🎨 #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

@@ -2,6 +2,7 @@ package com.binarywang.solon.wxjava.miniapp.configuration.services;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.api.impl.WxMaServiceHttpClientImpl;
import cn.binarywang.wx.miniapp.api.impl.WxMaServiceHttpComponentsImpl;
import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl;
import cn.binarywang.wx.miniapp.api.impl.WxMaServiceJoddHttpImpl;
import cn.binarywang.wx.miniapp.api.impl.WxMaServiceOkHttpImpl;
@@ -89,6 +90,9 @@ public abstract class AbstractWxMaConfiguration {
case HTTP_CLIENT:
wxMaService = new WxMaServiceHttpClientImpl();
break;
case HTTP_COMPONENTS:
wxMaService = new WxMaServiceHttpComponentsImpl();
break;
default:
wxMaService = new WxMaServiceImpl();
break;

View File

@@ -77,7 +77,7 @@ public class WxMaMultiProperties implements Serializable {
/**
* http客户端类型.
*/
private HttpClientType httpClientType = HttpClientType.HTTP_CLIENT;
private HttpClientType httpClientType = HttpClientType.HTTP_COMPONENTS;
/**
* http代理主机.
@@ -149,6 +149,10 @@ public class WxMaMultiProperties implements Serializable {
/**
* JoddHttp
*/
JODD_HTTP
JODD_HTTP,
/**
* HttpComponents
*/
HTTP_COMPONENTS
}
}