🎨 #4067 恢复默认 HTTP 客户端兼容性,避免非 Starter 手动集成时因默认引入 HttpClient5 导致的问题
This commit is contained in:
@@ -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 {
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user