Merge pull request #5176 from smic1909/patch-1
Fixed assignment of restTemplate
This commit is contained in:
commit
070bc10214
|
@ -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