From 37f1a96fd52aa6e9a025079210b504fb8d6b57b5 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 8 Jan 2021 15:16:45 +0100 Subject: [PATCH] WIP --- .../demo/httpresources/HttpResourcesDemoApplication.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/juplo/demo/httpresources/HttpResourcesDemoApplication.java b/src/main/java/de/juplo/demo/httpresources/HttpResourcesDemoApplication.java index 2d1af52..aec1079 100644 --- a/src/main/java/de/juplo/demo/httpresources/HttpResourcesDemoApplication.java +++ b/src/main/java/de/juplo/demo/httpresources/HttpResourcesDemoApplication.java @@ -1,19 +1,19 @@ package de.juplo.demo.httpresources; -import org.apache.http.client.HttpClient; -import org.apache.http.impl.client.HttpClientBuilder; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; +import org.springframework.http.client.ClientHttpRequestFactory; +import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; @SpringBootApplication public class HttpResourcesDemoApplication { @Bean - public HttpClient httpClient() + public ClientHttpRequestFactory clientHttpRequestFactory() { - return HttpClientBuilder.create().build(); + return new HttpComponentsClientHttpRequestFactory(); } -- 2.20.1