2d1af5248fb9651e03f7e2eba2c2d90d322bd043
[demos/httpresources] / src / main / java / de / juplo / demo / httpresources / HttpResourcesDemoApplication.java
1 package de.juplo.demo.httpresources;
2
3 import org.apache.http.client.HttpClient;
4 import org.apache.http.impl.client.HttpClientBuilder;
5 import org.springframework.boot.SpringApplication;
6 import org.springframework.boot.autoconfigure.SpringBootApplication;
7 import org.springframework.context.annotation.Bean;
8
9
10 @SpringBootApplication
11 public class HttpResourcesDemoApplication
12 {
13         @Bean
14         public HttpClient httpClient()
15         {
16                 return HttpClientBuilder.create().build();
17         }
18
19
20         public static void main(String[] args)
21         {
22                 SpringApplication.run(HttpResourcesDemoApplication.class, args);
23         }
24 }