1
0
mirror of synced 2026-10-23 00:17:23 +08:00

🎨 #4067 恢复默认 HTTP 客户端兼容性,避免非 Starter 手动集成时因默认引入 HttpClient5 导致的问题

This commit is contained in:
Binary Wang
2026-07-10 22:09:59 +08:00
committed by GitHub
parent 8242de6ce8
commit d9ab1b0f98
16 changed files with 20 additions and 23 deletions

View File

@@ -6,6 +6,6 @@ import lombok.extern.slf4j.Slf4j;
* @author <a href="https://github.com/binarywang">Binary Wang</a>
*/
@Slf4j
public class WxMaServiceImpl extends WxMaServiceHttpComponentsImpl {
public class WxMaServiceImpl extends WxMaServiceHttpClientImpl {
}

View File

@@ -11,6 +11,7 @@ import me.chanjar.weixin.common.bean.WxAccessTokenEntity;
import me.chanjar.weixin.common.error.WxError;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.common.error.WxMpErrorMsgEnum;
import me.chanjar.weixin.common.util.http.HttpClientType;
import me.chanjar.weixin.common.util.http.RequestExecutor;
import org.apache.commons.lang3.StringUtils;
import org.mockito.Mockito;
@@ -118,6 +119,8 @@ public class WxMaServiceImplTest {
@Test
public void testGetRequestType() {
assertThat(new WxMaServiceImpl().getRequestType()).isEqualTo(HttpClientType.APACHE_HTTP);
assertThat(new WxMaServiceHttpComponentsImpl().getRequestType()).isEqualTo(HttpClientType.HTTP_COMPONENTS);
}
@Test