1
0
mirror of synced 2026-10-18 05:16:10 +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

@@ -2,11 +2,11 @@ package com.github.binarywang.wxpay.service.impl;
/**
* <pre>
* 微信支付接口请求实现类,默认使用Apache HttpClient 5实现
* 微信支付接口请求实现类,默认使用 Apache HttpClient 4 实现.
* Created by Binary Wang on 2017-7-8.
* </pre>
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
*/
public class WxPayServiceImpl extends WxPayServiceHttpComponentsImpl {
public class WxPayServiceImpl extends WxPayServiceApacheHttpImpl {
}

View File

@@ -59,6 +59,11 @@ public class BaseWxPayServiceImplTest {
@Inject
private WxPayService payService;
@Test
public void testDefaultImplUsesApacheHttpClient() {
assertThat(new WxPayServiceImpl()).isInstanceOf(WxPayServiceApacheHttpImpl.class);
}
/**
* Test method for {@link WxPayService#unifiedOrder(WxPayUnifiedOrderRequest)}.
*