Browse Source

fix #283 (#286)

fix #283
pull/298/head
saga 7 years ago committed by Ryan Baxter
parent
commit
20798377df
  1. 1
      spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancerAutoConfiguration.java

1
spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancerAutoConfiguration.java

@ -105,6 +105,7 @@ public class LoadBalancerAutoConfiguration { @@ -105,6 +105,7 @@ public class LoadBalancerAutoConfiguration {
@ConditionalOnClass(RetryTemplate.class)
public static class RetryAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public RetryTemplate retryTemplate() {
RetryTemplate template = new RetryTemplate();
template.setThrowLastExceptionOnExhausted(true);

Loading…
Cancel
Save