Skip to content
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

Closed
spencergibb opened this issue Sep 19, 2014 · 4 comments
Closed

Ribbon support in RestTemplate #12

spencergibb opened this issue Sep 19, 2014 · 4 comments
Milestone

Comments

@spencergibb
Copy link
Member

No description provided.

@spencergibb
Copy link
Member Author

see spencergibb/spring-cloud-sandbox@6a48a5b for example usage

@dsyer dsyer modified the milestone: 1.0.0.M1 Oct 7, 2014
@rubesMN
Copy link

rubesMN commented Oct 8, 2014

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.

@spencergibb
Copy link
Member Author

@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

@rubesMN
Copy link

rubesMN commented Oct 9, 2014

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.

dsyer pushed a commit that referenced this issue Apr 26, 2016
Conditionalize reference doc/api doc links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants