Questions tagged [netflix-feign]

A framework created by Netflix to help connect your code to http APIs

A framework created by Netflix to help connect your code to http APIs. It is hosted on Github at Netflix/feign.

235 questions
0
votes
1 answer

bind feign target to guice

is there a way to bind a feign target to guice? My usecase case is as follows: I have a service, which can be either started in the same JVM or as a separate service. if the service is started in same JVM, then I will bind it using Guice. if the…
mihirg
  • 915
  • 2
  • 13
  • 28
0
votes
2 answers

mock implementation for feign client would not be autowire

i want to test my spring project. i need to mock a feign client in a test class but normal implementation would be autowired instead of mock implementation. here is top of my codes. plz help. @Profile("test") @Primary @Component public class…
0
votes
0 answers

Spring Cloud: how to use Feign without registration into Eureka

I have a eureka server and some services, they register to the eureka and use a Feign to communicate with each other. Every of such services is deployed into embedded tomcat container. Also I have some services which are executed as a demons by…
slippery
  • 355
  • 2
  • 6
  • 13
0
votes
1 answer

TimeoutException in edge using Feign and Hystrix

I'm building a training app with Netflix micro-services APIs. This is my edge, starting on localhost:9999: @EnableHystrix @EnableZuulProxy @EnableEurekaClient @SpringBootApplication public class EdgeApplication { public static void…
Happy
  • 1,815
  • 2
  • 18
  • 33
0
votes
1 answer

spring cloud + ribbon + feign + zuul + eureka

How to loadbalance micro services via Ribbon (Not feign). I have 3 micro services "M1", "M2" and "M2_duplication", "M1" is communicating with "M2" via feign. I want if "M2" get too much traffic, the requests will be forwarded to the…
0
votes
0 answers

Does Spring Cloud Feign support placeholders in Spring MVC annotations?

I'd like to use a placeholder to define the path of a request as shown below. When I attempt the request its seems that spring-cloud-feign is unable to swap the placeholder with an application.yml value. @FeignClient("foo") public interface…
Newbie
  • 7,031
  • 9
  • 60
  • 85
0
votes
0 answers

How to use eureka+feign-client without spring-cloud?

I have a new project with spring cloud(use eureka+feign to show interfaces). I also have some old project only use springMVC without spring boot and spring cloud. These projects do not want to use spring boot or spring cloud... The question is how…
0
votes
0 answers

Using feign with ribbon on spring boot cannot parse header

I am doing some test with ribbon and feign to connect to an api. The api is running using spring boot: @Controller @EnableAutoConfiguration public class MovieService { @RequestMapping("/") @ResponseBody List findAllMovies() { …
cremersstijn
  • 2,375
  • 4
  • 28
  • 41
0
votes
0 answers

How to take out ONLY the eureka ill service application instance to avoid hystrix circuit breaking?

I'm trying out on my local machine the spring-cloud-samples and I have developed a simple REST service with eureka and hystrix support. I have a frontend application which connects to the service via a hystrix command method (@HystrixCommand…
0
votes
3 answers

Issue with hystrix fallback in spring cloud

When I try to fallback using HystrixCommand in spring cloud, the method proxy is not working. The exception thrown in the in the method is not caught by the hystrix command aspect. I am facing this issue with Spring Cloud Hystrix integration. I'm…
Ashok Koyi
  • 5,327
  • 8
  • 41
  • 50
1 2 3
15
16