public class SkipSslVerificationHttpRequestFactory
extends org.springframework.http.client.SimpleClientHttpRequestFactory
SimpleClientHttpRequestFactory that skips SSL certificate verification.
信任自签证书,跳过Hostname检查
| 构造器和说明 |
|---|
SkipSslVerificationHttpRequestFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SSLContext |
getSSLContext()
信任自签证书
|
protected void |
prepareConnection(HttpURLConnection connection,
String httpMethod) |
protected void prepareConnection(HttpURLConnection connection, String httpMethod) throws IOException
prepareConnection 在类中 org.springframework.http.client.SimpleClientHttpRequestFactoryIOExceptionpublic static SSLContext getSSLContext()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.