openfeign Questions

7

I'm writing a Eureka Client Application using spring-cloud-starter-openfeign client. Here is my POM <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSche...

10

Solved

When i try to run my spring boot application i get this Exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in ...
Odontoblast asked 7/12, 2020 at 12:10

3

Solved

I've been struggling with this for a while now. In short, the problem is whenever I make a POST request using OpenFeign I get the following error: org.springframework.beans.factory.NoSuchBeanDefin...
Nebo asked 2/1, 2020 at 12:20

5

Solved

I have several microservices communicating each other with OpenFeign. Each one is a submodule of a project(call it "parent"), with its own docker container. OK. So, when I want to build a client w...
Lanam asked 17/9, 2019 at 13:54

2

Im using feign client to make rest calls between microservices, When i execute it using IntelliJ IDEA its working fine. But if i execute it with jar it gives me following error. org.springframework...
Dislike asked 29/6, 2022 at 11:19

1

Solved

I'm trying to setup a timeout to my feign clients when they try to access to other of my services. In order to test my circuit breaker method. This is my basic setup. I'm using spring-boot 3.0.2 an...

2

I am invoking 3rd party API which returns a response in XML format. As I have not created any POJO to hold response in my consumer service I am using java.lang.Object for same. I am getting the bel...
Malign asked 19/11, 2020 at 10:31

4

@FeignClient(...) public interface SomeClient { @RequestMapping(value = "/someUrl", method = POST, consumes = "application/json") ResponseEntity<String> createItem(...); } Is there a way ...

4

I have a Spring Feign client which is sending POJO object to remote endpoint using POST and my application start-up fails with below exceptions. java.lang.reflect.InaccessibleObjectException: Unabl...
Teleutospore asked 6/10, 2021 at 2:26

5

Solved

I am getting exception: FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spr...
General asked 2/9, 2020 at 9:44

3

I have a Feign client to access to an createUser endpoint that requires two headers: username and password. I know how to add one header, but how do I add two headers to the request? @FeignClient(...
Rhyolite asked 11/12, 2019 at 20:24

3

Solved

I want to consume a couple of rest services. Before, I used RestTemplate, but now I want to know The main differences between Spring Boot FeignClient and WebClient. When should they be used?

1

I've written a FeignClient and I would like to test that it works using a unit test. (For my case, integration tests is not the right approach for the current development stage). In my test, the Fe...
Accroach asked 20/7, 2021 at 10:43

1

Solved

assume 2 endpoints: @RequestMapping("/ep1") interface Endpoint1 { @GetMapping("/echo") String echo(); } @RequestMapping("/ep2") interface Endpoint2 { @GetMapping(&...
Detestable asked 13/11, 2021 at 1:40

2

For some reason I need to call a GET method API and pass json request body for it. I really couldn't find an example for it. I wonder if it is even supported using feign. How can I do that using f...
Covenanter asked 7/4, 2020 at 14:59

1

Solved

In my previous implementation I was using OAuth2FeignRequestInterceptor. But from Spring security 5 onwards, OAuth2FeignRequestInterceptor seems to be deprecated. What is the alternative to achieve...

1

Solved

I'm making a sequential request using Feign Builder. There are no x-b3-traceid,x-b3-spanid .. in the title of the request. That's why the log my last client appears on the zipkin. I use spring boot...
Cheryl asked 12/2, 2021 at 7:36

2

In our last feign client security configuration we have this Bean: @Bean public RequestInterceptor oauth2FeignRequestInterceptor( ClientCredentialsResourceDetails oauth2RemoteResource) { retur...

2

When i try to implements ErrorDecoder to decode the feign exception, i found the stream in response.body() is closed, so when i try to read the stream and trans to string, it throw java.io.IOExcept...
Atlantes asked 28/4, 2020 at 3:30

2

Solved

I tried to create a feign client for my REST service controller in Spring. @PostMapping("/search") public Page<MeasureDto> searchMeasures(@RequestBody MeasureDto example, Pageable p...
Furlough asked 27/7, 2020 at 12:43

1

Solved

So far we have a feign client which in case of exception, we used to retry as below Retryer<ClientResponse> retryer = RetryerBuilder.<ClientResponse>newBuilder() .retryIfExceptionOfTyp...
Extractive asked 11/7, 2019 at 10:59

1

Solved

What is the difference between: spring-cloud-starter-openfeign (https://github.com/spring-cloud/spring-cloud-openfeign) and spring-cloud-starter-feign (https://github.com/spring-cloud/spring-cloud...
Doorplate asked 1/5, 2019 at 20:5
1

© 2022 - 2025 — McMap. All rights reserved.