Removed httpclient setup

This commit is contained in:
Marcin Grzejszczak
2018-12-18 14:08:42 +01:00
parent d7ae991469
commit 6969d233b8

View File

@@ -11,7 +11,6 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.http.MediaType;
import org.springframework.http.RequestEntity;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -59,7 +58,6 @@ class Service {
public Service(RestTemplate restTemplate) {
this.restTemplate = restTemplate;
this.restTemplate.setRequestFactory(new HttpComponentsClientHttpRequestFactory());
}
public String go() {