spring-cloud with RestTemplate//Ribbon/Eureka - retry when server not available
I managed to successfully get my RestTemplate client discover remote service using Eureka and forward calls to it using Ribbon as described in the documentation. Basically, it was just a matter of adding the following annotations of my Application class and let the magic of Spring-Boot do the rest: @Configuration @ComponentScan @EnableAutoConfiguration @EnableDiscoveryClient (PS: you noticed I'm using spring-cloud:1.0.0-SNAPSHOT-BUILD and not 1.0.0.M3 - but this doesn't seem to affect my problem). When two service instances are started, the rest-template client successfully load balance