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

Which order does FeignClient discover services?

I have two instances for a first service. They work on different ports and have the same names. These services are registered with Eureka. Also I have a second service which need discover one instance of the first service. The second service is…
Alexander
  • 391
  • 1
  • 4
  • 12
0
votes
1 answer

Feign Client, Spring Boot Application, and rx/Observable Class Not Found Error

Some background: I have built two Spring Boot applications that are designed to be microservices. The first application (schedule provision) is a RESTful service that provides data for the other application (schedule checker). Therefore, there is a…
0
votes
2 answers

Hostname information in the feign Logger

I am using feign clients in spring-cloud environment with the Eureka discovery service and implementing a custom feign logger to be able to log some usefull request and response information. For that I have extended feign.Logger class and overriden…
0
votes
0 answers

How to dynamically set @Bean at @Configuration in @Service?

I use spring cloud & feign client with my app.And I want to set the param 'accept-language' to headers when call feign clients. I found the similar questions at [Using @Headers with dynamic values in Feign client + Spring Cloud (Brixton…
Wentao Wan
  • 111
  • 1
  • 2
  • 8
0
votes
1 answer

How to use matrixvariable in FeignClient api class?

I have one FeignClient class and I want to use MatrixVariable to pass parameters like below @FeignClient(value = "apiService", url = "${api.url}", configuration =ApiServiceConfiguration.class) public interface ApiServiceFeign { …
NIrav Modi
  • 6,038
  • 8
  • 32
  • 47
0
votes
0 answers

Feign+Ribbon retry does not work

I have build a spring cloud demo with feign and ribbon in it,but the retry function doesn't work.In the same program ,I use RestTemplate too.In this case the retry function works well.Does Feign need extra configuration to use…
capol
  • 1
  • 5
0
votes
2 answers

FeignClients get published as REST endpoints in spring cloud application

I've got REST FeignClient defined in my application: @FeignClient(name = "gateway", configuration = FeignAuthConfig.class) public interface AccountsClient extends Accounts { } I share endpoint interface between server and…
0
votes
0 answers

Feign Client with Spring Cloud Brixton SR7

I am trying to use Feign Client with the new Spring Cloud version (Brixton.SR7) but I am having problems. Every time I try to make a REST call to a registered service in Eureka Server I got the exception: Servlet.service() for servlet…
0
votes
2 answers

How to ignore @FeignClient apis from being processed by swagger?

I am using swagger and Feign in one project, and the swagger will take @RequestMapping annotated methods and create the documentation. But this is weird to do so for classes and methods annotated by both @FeightClient and @RequestMapping. So how to…
leo
  • 583
  • 2
  • 7
  • 20
0
votes
1 answer

Trying to use Feign to log into Spring OAuth2 server

I'm looking to make a grant_type = password login from a service with Feign to the Spring OAuth2 server. I've confirmed the OAuth2 server works when I make a normal REST call. But when trying with Feign, it fails. In my service I…
prograhammer
  • 20,132
  • 13
  • 91
  • 118
0
votes
0 answers

Spring FeignClient not working with DMZ

I have problem after deploying spring boot application in microservices architecture (jhipster). Architecture presentation: Secured zone (unavailable for users from web browser): AdminApp, ServerApp DMZ (available for users): UserApp AdminApp…
Mariusz
  • 36
  • 3
0
votes
2 answers

How to automatically initizlize the 'dispatcherServlet' the moment after the web app started in the spring boot application?

I am working on feign client with hystrix in a spring boot application. I started a eureka server and register two providers. In the feign client application I added the hystrix support. And when I request the service first time, I got the hystrix…
leo
  • 583
  • 2
  • 7
  • 20
0
votes
1 answer

Spring Cloud Feign: Feign doesn't put parameter into HTTP body when issuing POST request

Here is my Feign interface definition: @RequestMapping(value = "/group/list", method = RequestMethod.POST) List list(AdvertGroupVO vo, @RequestParam("page") int page, …
Neo
  • 2,196
  • 5
  • 32
  • 58
0
votes
1 answer

spring-cloud - Hystrix Stream with just Ribbon

With spring-boot-starter-actuator in a web application, where Ribbon/Feign Clients are used, hystrix stream/ endpoint is not enabled. HystrixCircuitBreakerConfiguration.HystrixWebConfiguration is not activated even with the conditions being…
Ahamed Mustafa M
  • 3,069
  • 1
  • 24
  • 34
0
votes
1 answer

query value contain `{aa%` cause feign returned http status code 400

I'm using feign in spring-cloud, I have got a problem. This is my feign client def. @FeignClient("food-service") public interface FoodService { @RequestMapping(value = {"/food"},method = {RequestMethod.GET}) List
Dreampie
  • 1,321
  • 4
  • 17
  • 32
1 2 3
15
16