<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
+ <dependency>
+ <groupId>de.juplo</groupId>
+ <artifactId>http-resources</artifactId>
+ <version>2.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
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;
+
@SpringBootApplication
public class HttpResourcesDemoApplication
{
+ @Bean
+ public HttpClient httpClient()
+ {
+ return HttpClientBuilder.create().build();
+ }
+
+
public static void main(String[] args)
{
SpringApplication.run(HttpResourcesDemoApplication.class, args);