diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/function/client/ClientHttpConnectorConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/function/client/ClientHttpConnectorConfiguration.java index 7c887412bc..7972d2a68a 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/function/client/ClientHttpConnectorConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/function/client/ClientHttpConnectorConfiguration.java @@ -78,10 +78,7 @@ class ClientHttpConnectorConfiguration { JettyResourceFactory jettyResourceFactory) { SslContextFactory sslContextFactory = new SslContextFactory.Client(); HttpClient httpClient = new HttpClient(sslContextFactory); - httpClient.setExecutor(jettyResourceFactory.getExecutor()); - httpClient.setByteBufferPool(jettyResourceFactory.getByteBufferPool()); - httpClient.setScheduler(jettyResourceFactory.getScheduler()); - return new JettyClientHttpConnector(httpClient); + return new JettyClientHttpConnector(httpClient, jettyResourceFactory); } }