diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/ClientHttpRequestFactories.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/ClientHttpRequestFactories.java index 9f4aa4475487..9fc047382ff3 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/ClientHttpRequestFactories.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/ClientHttpRequestFactories.java @@ -212,7 +212,8 @@ private static HttpClient createHttpClient(Duration readTimeout, SslBundle sslBu options.getEnabledProtocols(), options.getCiphers(), new DefaultHostnameVerifier()); connectionManagerBuilder.setSSLSocketFactory(socketFactory); } - PoolingHttpClientConnectionManager connectionManager = connectionManagerBuilder.build(); + PoolingHttpClientConnectionManager connectionManager = connectionManagerBuilder.useSystemProperties() + .build(); return HttpClientBuilder.create().useSystemProperties().setConnectionManager(connectionManager).build(); }