Fixed retry policy

see spring-cloud/spring-cloud-netflx#1577
This commit is contained in:
Ryan Baxter
2016-12-29 19:43:24 -05:00
committed by GitHub
parent c5d73294c4
commit 82175d1cac

View File

@@ -363,7 +363,7 @@ for details of how the `RestTemplate` is set up.
A load balanced `RestTemplate` can be configured to retry failed requests.
By default this logic is disabled, you can enable it by setting
`spring.cloud.loadbalancer.retry=true`. The load balanced `RestTemplate` will
`spring.cloud.loadbalancer.retry.enable=true`. The load balanced `RestTemplate` will
honor some of the Ribbon configuration values related to retrying failed requests.
The properties you can use are `client.ribbon.MaxAutoRetries`,
`client.ribbon.MaxAutoRetriesNextServer`, and `client.ribbon.OkToRetryOnAllOperations`.