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

where does the maven version get overridden?

I am building a spring boot starter, following the recommended convention with core / autoconfigure / starter module separation. When I look at the maven dependency-tree, this is what I have : [INFO]…
Vincent F
  • 6,523
  • 7
  • 37
  • 79
0
votes
1 answer

Propagate Spring RequestAttributes (RequestContextHolder) to Feign configuration beans?

I'm using a Feign configuration class, declared using the annotations like so; @FeignClient(name = "${earfsdf}", configuration = FeignConf.class) FeignConf in this case is not a Spring @Configuration, it's purely scoped for this Feign client using…
0
votes
1 answer

How to pass multiple RequestHeader when using @FeignClient

I need to pass multiple Request Headers using @FeignClient When its one header of type String the @RequestHeader works fine but with multiple I get RequestHeader.value() was empty on parameter 0, while starting the spring boot error . …
sheetal
  • 3,014
  • 2
  • 31
  • 45
0
votes
0 answers

Certificate path issue in accessing HTTPS url using feignclient

I am using a test certificate that I have imported into C:\Program Files\Java\jre1.8.0_131\lib\security\cacerts path. I am trying to connect to a https service. It always throws javax.net.ssl.SSLHandshakeException. main, handling exception:…
Soumyajit Swain
  • 1,298
  • 1
  • 21
  • 35
0
votes
1 answer

Cannot use Feign client from a message consumer

I have a set of three microservices created with JHipster and configured with Okta OAuth2 autentication. I've also added the integration with RabbitMQ message service so one of the service produce messages on certain events and other one consume…
0
votes
0 answers

Spring cloud stream kafka and Feign client result in consume message repeat

In my project, I use spring-cloud-stream-kafka, and @StreamListener received Message, When processing this message I used FeignClient to call another service. but I didn't call that service without exception, and I received the same message again.
0
votes
1 answer

OpenFeign: how to set header without passing it as a param

I am trying to implement OpenFeign client. In my api interface, I have: @RequestLine("GET /testUser/{uuid}") TestUser get(@Param("uuid") UUID uuid); And in my test case, I test it like this: TestUser testUser = TestUserApi.get(uuid); I do not want…
0
votes
0 answers

ConfigurationProperties does not bind properties in combination with an explicit feign configuration class

I want to bind properties from the application.yml automatically by using @ConfigurationProperties on a bean but the properties won't be injected. My problem seems similar to ConfigurationProperties does not bind properties but the solutions in that…
d3rbastl3r
  • 463
  • 1
  • 6
  • 16
0
votes
1 answer

Feign client concurrency issue

I have setup Spring Cloud (Camden.SR7) with Eureka (1.3.5.RELEASE), Config server and several Spring Boot (1.5.7.RELEASE) microservices. Communication between microservices is performed with Feign client (Hystrix is disabled). Although this works…
dchar
  • 1,665
  • 2
  • 19
  • 28
0
votes
0 answers

Feign with Ribbon and Hystrix

Hystrix is not opening the circuit for the feign client. I am testing the server which is always slow with following configuration: hystrix.circuitBreaker.requestVolumeThreshold: 4 hystrix.circuitBreaker.errorThresholdPercentage:…
0
votes
1 answer

character encoding conversion jackson and spring boot

As I understand from RFC, JSON is always UTF-*. I have Spring REST service which receives JSON data from client. But in my system everything downstream is ISO-8859-1. Including storing data in database. How can I configure jackson so that request -…
0
votes
2 answers

feign-okhttp post request with url query parameters

I currently have replaced httpurlconnection to feign-okhttp in my projects. I use the following edition: io.github.openfeign feign-okhttp 9.6.0
0
votes
1 answer

consume a REST service from the outside world behind a corporate proxy with authentication

I want to consume a REST service from the outside world behind a corporate proxy with authentication. How do I configure Spring Cloud Feign to use our proxy? Note: I'm using feign spring boot implementation, I do not need to make a builder for Feign…
0
votes
0 answers

Failed to instantiate [org.springframework.cache.interceptor.BeanFactoryCacheOperationSourceAdvisor]: Factory method 'cacheAdvisor' threw exception;

when i ran my spring stream application, i got some error, and i don't know why, is there anybody can help me. This is my yml file main content : spring: cloud: stream: default: consumer: concurrency: 4 …
zhangtao
  • 11
  • 1
  • 6
0
votes
0 answers

non-standard url with Feign and Spring

I am using Feign with Spring and I want to call a rest client that does not respect any standard. https://uglyservices.com/api/service1/{param1}?token={param2}&&data={jsonData} I tried with the spring GetMapping but I could not. I've also tried…
user60108
  • 3,270
  • 2
  • 27
  • 43