mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-20 16:06:13 +08:00
帮助文档优化
This commit is contained in:
@@ -108,7 +108,7 @@ public class HttpRequestTemplate {
|
||||
//http代理地址设置
|
||||
httpProxy = new HttpHost(configStorage.getHttpProxyHost(), configStorage.getHttpProxyPort());
|
||||
|
||||
if (StringUtils.isNotBlank(configStorage.getHttpProxyHost())) {
|
||||
if (StringUtils.isBlank(configStorage.getHttpProxyUsername())) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ public class HttpRequestTemplate {
|
||||
|
||||
httpClient = HttpClients
|
||||
.custom()
|
||||
//设置代理
|
||||
//设置代理或网络提供者
|
||||
.setDefaultCredentialsProvider(createProxy(configStorage))
|
||||
//设置httpclient的SSLSocketFactory
|
||||
.setSSLSocketFactory(createSSL(configStorage))
|
||||
|
||||
Reference in New Issue
Block a user