-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ribbon support in RestTemplate #12
Comments
see spencergibb/spring-cloud-sandbox@6a48a5b for example usage |
Question, can you expand on what you're changing here? I'm looking to use an instance of RestTemplate and have it use a default loadBalancer within a 'spring-cloud-starters' application configured with Hystrix and Eureka. Using 1.0.0.M1, using straight RestTemplate to any endpoint and giving me "java.lang.IllegalStateException: Unable to locate ILoadBalancer for service: localhost". I dont see any configuration options to rectify this. |
@rubesMN so probably better asked on stackoverflow (use the spring-cloud tag http://stackoverflow.com/questions/tagged/spring-cloud), but if you look at spencergibb/spring-cloud-sandbox@6a48a5b#diff-3b7598075db038ffc04ede926aa20f80R52 you'll notice the url has a serviceid for the host, not, in your case, localhost |
Thanks Spencer, that was the concept I was missing... serviceid. I setup my configuration as you did in the sample-frontend wrt application.yml and it worked. |
Conditionalize reference doc/api doc links
No description provided.
The text was updated successfully, but these errors were encountered: