帮助文档优化

This commit is contained in:
egan
2018-01-21 13:53:18 +08:00
parent 2489590062
commit 3b3e7164c5

View File

@@ -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))