Can I configure a @FeignClient url using a properties/yml file?

It can be done with a “serviceId” instead of a “url”. E.g.

@FeignClient("foo")
interface Client { ... }

and

foo.ribbon.listOfServers: localhost:9000

e.g. see http://projects.spring.io/spring-cloud/spring-cloud.html#spring-cloud-ribbon-without-eureka for docs.

Leave a Comment

tech