Git Product home page Git Product logo

Comments (4)

spencergibb avatar spencergibb commented on May 22, 2024

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

from spring-cloud-netflix.

rubesMN avatar rubesMN commented on May 22, 2024

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.

from spring-cloud-netflix.

spencergibb avatar spencergibb commented on May 22, 2024

@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

from spring-cloud-netflix.

rubesMN avatar rubesMN commented on May 22, 2024

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.

from spring-cloud-netflix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.