Questions tagged [spring-cloud-feign]

Use this tag for question related to the use of Feign declarative REST client inside the spring cloud ecosystem.

Feign declarative REST client used inside the spring cloud ecosystem.

734 questions
0
votes
1 answer

Struggling to get SpringCloud Feign to work with external services

Using Feign to access services that I register on Eureka is a breeze. I am trying to use Feign to access external services and struggling with the basics. I am playing with a service on Bluemix however to simplify the problem at hand, I am using a…
Manglu
  • 10,744
  • 12
  • 44
  • 57
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
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
0 answers

How to populate Zookeeper service with properties

I have an spring application. It uses zookeeper to manage cluster access. I want populate zookeeper service with properties data to dynamic reconfigure spring beans. How I can put properties into zookeeper service? Can I populate data using spring…
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
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
0 answers

Update to Spring Boot 1.4.1 from 1.3.2 breaks interceptor

I have the following interceptor for OAuth request template @Component @Scope("prototype") public class OAuthInterceptor implements RequestInterceptor { @Autowired private OAuth2RestOperations restTemplate; @Autowired private…
David Magalhães
  • 750
  • 4
  • 10
  • 27
0
votes
0 answers

post operation in spring data rest inserts null in the foriegn key field

I am facing issues while making a POST request to a Spring data rest endpoint. My entity contains a foreign key to another entity. Testing this endpoint from rest client works fine but when I am using Rest Template or Feign Client, the foreign key…
0
votes
1 answer

Configure spring cloud contract and Zuul proxy in the same project

I have a problem with integrating spring-cloud-contract with my service on the consumer side. In my service I use already feign (to call other services) and zuul (for routing) from spring-cloud. The problem happens when I try to run a test annotated…
Karol K
  • 3
  • 4
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
0 answers

How can we discover a service in Eureka using a qualifying property with Spring Cloud and Spring Boot

We have about 50 microservices developed using Spring Boot. We use Spring Cloud for registering services with Eureka and invoke the service from the consumer using Feign. The contract is pretty standard, where the consumer uses an interface with…
Kartik Pandya
  • 2,718
  • 2
  • 14
  • 28
0
votes
2 answers

Spring Cloud: How to configure Hystrix in @FeignClient

I have following service: @FeignClient(name = "person", fallback = FeignHystrixFallback.class) public interface PersonService { @RequestMapping(value = "/find", method = RequestMethod.GET) Person findPerson(@RequestParam("name") String…
Neo
  • 2,196
  • 5
  • 32
  • 58
0
votes
2 answers

Feign Client (In Non Web environment) to a RepostoryRestResource with HAL - is not valid use case?

Recently while working with feign client in a spring boot application (which in my case is not a web app) I see that the client is not able to de-serialize the object correctly . As pointed to me by by a colleague - it turned out to be due to the…
0
votes
1 answer

Integration Test For FeignClient Using Test Double

I'm fairly new to spring cloud. Is there a way we could perform integration test on Feign clients using test double like wire mocks or some kind of test double ? Is there a way I could get this mocked test double registered in the registry-server…
1 2 3
48
49