Fixed assignment of restTemplate
Fixed assignment of restTemplate
This commit is contained in:
parent
a2f77a2783
commit
334137939b
|
@ -14,7 +14,7 @@ public class BarConsumerService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
public BarConsumerService(RestTemplateBuilder restTemplateBuilder) {
|
public BarConsumerService(RestTemplateBuilder restTemplateBuilder) {
|
||||||
RestTemplate restTemplate = restTemplateBuilder
|
restTemplate = restTemplateBuilder
|
||||||
.errorHandler(new RestTemplateResponseErrorHandler())
|
.errorHandler(new RestTemplateResponseErrorHandler())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue