spring-cloud-feign Questions

7

I'm trying to implement a unit test involving a FeignClient call which should return a 404 Not Found. As Feign is trowing a FeignException for 404, what is the proper way to implement this test ca...
Sladen asked 6/11, 2019 at 10:19

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...

4

Solved

Configure Proxy Route Planner on Feign I need to know how to make requests being behind a proxy server using the spring boot REST client. I can do this configuration using apache commons for REST ...
Shu asked 23/4, 2018 at 13:50

7

Solved

I have some fiegn client to send request other micro service. @FeignClient(name="userservice") public interface UserClient { @RequestMapping( method= RequestMethod.GET, path = "/...
Novation asked 6/3, 2019 at 10:5

3

Solved

I have below architecture in my project My UI Service(Port 8080) making Feign call to Gateway Service(Port 8085). My Get call from UI service is " http://localhost:8080/invoice-list?startDate=2018...

3

Solved

I am trying spring-boot (2.0.5) with spring-cloud (Finchley.SR1) and trying to setup communication between two services using Eureka as discovery server and Feign/Ribbon as clients. The setup is qu...

5

Solved

I'm using Feign Client with disabled Load Balancer @FeignClient(name = "my-client", url = "${myHost}", configuration = ClientContext.class) So, all ribbon properties are ignored. I'm trying to s...
Rebatement asked 2/10, 2017 at 13:26

7

Solved

I don't know what I'm doing wrong, but each time feign client converts method declared as get to post type. @FeignClient(name = "my-service", url = "http://localhost:8114", path = "service") publi...
Intertidal asked 16/11, 2018 at 14:51

4

I am trying to invoke some backend system which is secured by a client_credentials grant type from a Feign client application. The access token from the backend system can be retrieved with the fol...
Motherless asked 6/8, 2020 at 11:52

6

Solved

I have a pretty simple situation and I've tried a few things now and I can't find the cause of this issue. It claims it can not Autowire the Feign client class though this is how I have done this i...
Cheery asked 21/3, 2018 at 19:38

2

Solved

I want to download and save a file in local directory from server by Spring-OpenFeign with zero-copy. Naive download method as following: import org.apache.commons.io.FileUtils @GetMapping("/...
Blowzed asked 22/9, 2019 at 17:15

9

Solved

Hi what trying to achieve is to get bearer token that submited from front end in java spring boot RESTApi controller and do another request using feign client to another microservices? here is what...
Kellikellia asked 26/11, 2020 at 10:5

6

I am trying to run the application but this error keeps prompting. Description: Parameter 0 of constructor in com.clientui.clientui.controller.ClientController required a bean of type 'org.springfr...
Draco asked 27/11, 2022 at 20:7

10

Getting below exception while testing feign functionality. ********************* APPLICATION FAILED TO START ********************* Description: Field currencyConversionServiceProxy in com.in28min...

9

@FeignClient(name = "test", url="http://xxxx") How can I change the feign URL (url="http://xxxx") during the runtime? because the URL can only be determined at run time.
Windowsill asked 2/5, 2017 at 8:41

7

Solved

I use a ErrorDecoder to return the right exception rather than a 500 status code. Is there a way to retrieve the original message inside the decoder. I can see that it is inside the FeignException...
Yusuk asked 28/11, 2018 at 17:43

4

Solved

I'm trying to acess a apllication secured by https, i have a p12 certificate (already imported as .cer into cacerts folder of my jdk). I already tried this tutorial to no success: https://dzone.com...
Echikson asked 26/1, 2021 at 19:57

3

Solved

I have a Spring Boot application that calls a remote service. This remote web service provided me a p12 file that should authenticate my application. How do I configure my feign client to use the...
Cleat asked 23/9, 2019 at 9:41

9

Solved

Using spring-mvc annotations: How can I define an @FeignClient that can POST form-url-encoded?
Verdellverderer asked 4/3, 2016 at 18:8

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

9

I'm trying to get logging working for each request from a Feign rest client. However I cannot get the logging to work, while 'standard' Slf4j logging does work. I have the following: public MyClien...
Garbo asked 12/3, 2017 at 18:17

4

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

4

Context I have a spring boot (version 2.2.6.RELEASE) web project. From this web application (I call "APP1") I want to call another URI using the PATCH method from another web application (Let's c...
Faizabad asked 6/5, 2020 at 17:56

2

Solved

I am using the mix Spring-Cloud + feign + spring-retry to help retry requests on the client side (all are Kotlin-based back-ends) My spring-boot conf is like this: myApp: ribbon: OkToRetryOnAll...
Eileneeilis asked 9/8, 2018 at 14:48

© 2022 - 2025 — McMap. All rights reserved.