Skip to content

Commit

Permalink
帮助文档优化
Browse files Browse the repository at this point in the history
  • Loading branch information
egzosn committed Jan 21, 2018
1 parent 7abcdab commit 163dc71
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public CredentialsProvider createProxy(HttpConfigStorage configStorage){
//http代理地址设置
httpProxy = new HttpHost(configStorage.getHttpProxyHost(), configStorage.getHttpProxyPort());

if (StringUtils.isNotBlank(configStorage.getHttpProxyHost())) {
if (StringUtils.isBlank(configStorage.getHttpProxyUsername())) {
return null;
}

Expand Down Expand Up @@ -137,7 +137,7 @@ public HttpRequestTemplate setHttpConfigStorage(HttpConfigStorage configStorage)

httpClient = HttpClients
.custom()
//设置代理
//设置代理或网络提供者
.setDefaultCredentialsProvider(createProxy(configStorage))
//设置httpclient的SSLSocketFactory
.setSSLSocketFactory(createSSL(configStorage))
Expand Down

0 comments on commit 163dc71

Please sign in to comment.