Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
与出站网关的HTTPS通信_Https_Spring Integration_Outbound - Fatal编程技术网

与出站网关的HTTPS通信

与出站网关的HTTPS通信,https,spring-integration,outbound,Https,Spring Integration,Outbound,Spring集成4: 我想与HTTPS的http出站网关进行通信。i、 e.使用安全协议。 要求是我想使用URL“https://”,但我们没有证书,需要绕过此设置。我在一些旧项目中发现此配置: <bean id="clientHttpRequestFactory" class="org.springframework.http.client.CommonsClientHttpRequestFactory"/> <!--TODO waiting HttpClient SSL i

Spring集成4:

我想与HTTPS的http出站网关进行通信。i、 e.使用安全协议。
要求是我想使用URL“https://”,但我们没有证书,需要绕过此设置。

我在一些旧项目中发现此配置:

<bean id="clientHttpRequestFactory" class="org.springframework.http.client.CommonsClientHttpRequestFactory"/>
<!--TODO waiting HttpClient SSL impl <bean id="clientHttpRequestFactory" class="org.springframework.http.client.HttpComponentsClientHttpRequestFactory"/>-->
请参阅此答案中的更多信息:


在定制之后,您只需将
clienthttpprequestfactory
注入

我的示例如下:@Artem如何在SpringXML中连接CloseableHttpClient并设置SSLContext,请参见我的问题。。
CloseableHttpClient httpClient = HttpClients.custom().setSSLHostnameVerifier(NoopHostnameVerifier.INSTANCE).build()