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

How to make Spring ignore @RequestMapping annotations in specific packages

I've been playing around with the concept outlined in this answer, to share a common 'contract' between server and client. I'm trying to use this concept in a Spring MVC application that contains both REST endpoints and a Feign client. The…
Michel
  • 603
  • 6
  • 15
0
votes
1 answer

How to use Feign Client to upload multipart file?

I have to make a call to upload a file to below service:- @RequestMapping(value = "/uploadFile", method = RequestMethod.POST) public Response uploadFile( @RequestParam(value="file", required=true) MultipartFile file, …
0
votes
0 answers

using a custom client in an existing FeignClient interface, with same target URL

I have an existing interface annotated with @FeignClient : @FeignClient(name = "myRemoteService", url = "${myRemoteService.url}/api/v3/", decode404 = true, configuration = MyRemoteServiceConfig.class) public interface FeignRemoteService extends…
Vincent F
  • 6,523
  • 7
  • 37
  • 79
0
votes
1 answer

No request bound thread error

I have two spring boot services. A and B. From A service, I am calling B Service(Using Feign Client). I have one request interceptor which adds custom headers to the request before sending it. This is my interceptor: public class HeaderInterceptor…
Ankit Bansal
  • 2,162
  • 8
  • 42
  • 79
0
votes
1 answer

Feign Ribbon client wait and retry

I am using Feign Ribbon client to talk to a service. I have a client that fails immediately after configured maxAutoRetries in ribbon. Is there a property in feign or ribbon like "wait and retry" which can wait for configured time and retry.
Pradeep
  • 850
  • 2
  • 14
  • 27
0
votes
1 answer

Does Spring-Vault Library support Feign Client or is there any way to route the calls through feign

The idea is to make spring-vault use feign client (to take advantage of hystrix's fault tolerance capabilities). Does spring-vault support feign client? or is there a work around if not supported out of the box Or is there away to route…
0
votes
2 answers

Hystrix/Feign to solely react on HTTP status 429

I'm using Feign from the spring-cloud-starter-feign to send requests to a defined backend. I would like to use Hystrix as a circuit-breaker but for only one type of use-case: If the backend responds with a HTTP 429: Too many requests code, my Feign…
0
votes
1 answer

spring cloud - get server name for feign client from application properties

I have two microservices demo-cartservice and demo-feignclient where the demo-feignclient fetches resources from demo-cartservice In both projects I set server.servlet.context-path=/demo/api/ in application.properties The Feign client proxy uses the…
tenticon
  • 2,639
  • 4
  • 32
  • 76
0
votes
2 answers

Feign client mapping by parameter

I have a feign client that looks something like that: @RequestMapping(method = RequestMethod.POST, value = "/breakdowns/utmMedium", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE) List getUtmMediumBreakdowns( @RequestBody Record…
Avi
  • 21,182
  • 26
  • 82
  • 121
0
votes
1 answer

How to configure Feign client to work without Consul

Can someone help to find out why I can't setup locally FeignClient using application.properties and without running consul? client: @FeignClient(value = "my-service", configuration = FeignConfig.class) { …
Taras K
  • 85
  • 2
  • 9
0
votes
1 answer

@EnableZuulProxy cause junit tests fail to load ApplicationContext

The main application relies on microservices which mainly work through feign clients except for one - uploading of files. Since feign clients only works with text-based data, RestTemplate along with zuul proxy is used instead. Instead of having a…
0
votes
1 answer

Feign Client and Spring-data-rest (HAL): Howto navigate to linked (`_links`) resorces?

finally after extensive stack-overflowing ;-) and debugging I made it work: My Feign-client can make requests on Spring-Data-Rest's API and I get a Resource with filled links back. My code so far... The FeignClient: @FeignClient(name =…
0
votes
0 answers

bootstrap.properties not working with @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)

I'm struggling with some spring-cloud-stuff regarding automated testing and integrated tomcat-server being configured to use some random port. First I opened a bug on the spring-boot project, because I was thinking they are responsible for taking…
FibreFoX
  • 2,858
  • 1
  • 19
  • 41
0
votes
1 answer

How to correctly handle inter-service exception in a spring-based microservices architecture

I have an application developed with a microservices architecture. Each microservice is a spring-boot application that communicates with others via FeignClient interface. Let A, a microservice (RestAPI) that calls microservice B. In normal…
0
votes
1 answer

Working with Spring FeignClient with fallback behavior

I got a problem to solve with Spring FeignClient. I have two endpoints to send an SMS, both are the same behavior: When I send a GET with all query parameters required, the service sends the SMS. But I need to check if endpoint A is off – in which…