1 package de.juplo.demo.httpresources;
3 import org.springframework.boot.SpringApplication;
4 import org.springframework.boot.autoconfigure.SpringBootApplication;
5 import org.springframework.context.annotation.Bean;
6 import org.springframework.http.client.ClientHttpRequestFactory;
7 import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
10 @SpringBootApplication
11 public class HttpResourcesDemoApplication
14 public ClientHttpRequestFactory clientHttpRequestFactory()
16 return new HttpComponentsClientHttpRequestFactory();
20 public static void main(String[] args)
22 SpringApplication.run(HttpResourcesDemoApplication.class, args);