Fix media controller rest template
parent
0f23e80aaf
commit
f170b57ea5
2
config
2
config
|
@ -1 +1 @@
|
|||
Subproject commit 0d028147e90627b077c5435b557d6b3d7d19623c
|
||||
Subproject commit 75a784ba6ed8f6e70ee91808d3752443e3a04d1d
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue