Fix media controller rest template

master
esensar 2017-04-16 17:53:15 +02:00
parent 0f23e80aaf
commit f170b57ea5
2 changed files with 3 additions and 3 deletions

2
config

@ -1 +1 @@
Subproject commit 0d028147e90627b077c5435b557d6b3d7d19623c
Subproject commit 75a784ba6ed8f6e70ee91808d3752443e3a04d1d

View File

@ -30,9 +30,9 @@ public class MediaController {
private ServiceDiscoveryClient discoveryClient;
@Autowired
public MediaController(MediaJpaRepository repository, RestTemplate restTemplate, ServiceDiscoveryClient discoveryClient) {
public MediaController(MediaJpaRepository repository, RestTemplateBuilder restTemplateBuilder, ServiceDiscoveryClient discoveryClient) {
this.repository = repository;
this.restTemplate = restTemplate;
this.restTemplate = restTemplateBuilder.build();
this.discoveryClient = discoveryClient;
}