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
|
||||
public BarConsumerService(RestTemplateBuilder restTemplateBuilder) {
|
||||
RestTemplate restTemplate = restTemplateBuilder
|
||||
restTemplate = restTemplateBuilder
|
||||
.errorHandler(new RestTemplateResponseErrorHandler())
|
||||
.build();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue