mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-01-23 21:32:09 +08:00
🎨 #3834 【基础架构】小程序和开放平台两个模块补充了 Apache HttpClient 5.x 实现,同时并将多个模块的默认服务实现迁移至 Apache HttpClient 5.x 客户端
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user