feign Questions

3

I have a whole bunch of Feign clients that uses a shared configuration(MyFeignConfiguration.class): @FeignClient(name = "clientA", url = "http://serviceA.com", fallbackFactory =...
Integer asked 24/1, 2022 at 22:50

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

8

Solved

How can I achieve curl -k in feign client? I know I can do this. Just want to know if there's a way to ignore or disable. new Client.Default(SSLSocketFactory sslContextFactory, HostnameVerifier ...
Toggle asked 17/4, 2017 at 7:41

3

I want every time when I make a request through feign client, to set a specific header with my authenticated user. This is my filter from which I get the authentication and set it to the spring s...
Bannerman asked 26/10, 2016 at 12:19

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 am using Spring Boot to write an application that interacts with HTTP rest servers. One of the servers I'm connecting to (Wit.ai) uses a beaerer authorization token. A curl request that yields a ...
Podite asked 8/5, 2018 at 15:53

3

I am currently using a YAML file to generate the models and the API clients using the swagger plugin and I am using Feign OkHttpClient to make requests to the API, the problem here is the client en...
Scarf asked 31/10, 2018 at 19:7

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

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

3

i am using spring boot to call a openfeign client and from the Response of that feign i need to extract some header values.how can i do that. can anybody help please. just help me wheather we can d...
Arrington asked 7/9, 2022 at 13:0

4

Solved

Is it possible to override a bean created through the @FeignClient annotation by just creating a @Configuration bean that contains a mocked version of it for testing? I've already tried it but it...
Eld asked 30/5, 2017 at 15:11

5

Solved

I'm running into a scenario where I need to define a one-off @FeignClient for a third party API. In this client I'd like to use a custom Jackson ObjectMapper that differs from my @Primary one. I kn...

10

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

5

Solved

Here is my interface: public interface SCIMServiceStub { @RequestLine("GET /Users/{id}") SCIMUser getUser(@Param("id") String id); @RequestLine("GET /Groups?filter=disp...
Alyce asked 9/5, 2017 at 11:32

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

4

Solved

I have a spring boot app and want to create a Feign client which has a statically defined header value (for auth, but not basic auth). I found the @Headers annotation but it doesn't seem to work in...
Decorator asked 21/5, 2018 at 22:28

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

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

6

Solved

How I can log the payload of Feign client request, response and URL. do I have to Implement an Interceptor? Because my requirement is logging the request and response on a special table on the data...
Underexposure asked 11/4, 2019 at 4:25

2

Solved

Tell me how to properly configure the work of Feign and Spring Pageable Here are my Feign settings feign: okhttp: enabled: true autoconfiguration: jackson: enabled: true client: config: def...
Joanjoana asked 6/4, 2021 at 17:14

6

Solved

The microservice I'm writting needs to communicate to other microservices in our platform. On that attempt, the ideal solution for us is Spring Cloud Netflix Feign, implemeting a @FeignClient. How...

4

I have Feign client in one service with a method @PostMapping(consumes = MediaType.MULTIPART_FORM_DATA_VALUE) MyDto uploadDocument(@RequestPart("file") MultipartFile file, @RequestPart(...
Travelled asked 24/7, 2020 at 9:20

4

I have a number of clients for which a "global" RequestInterceptor has been defined. For one of the clients I need this "global" interceptor to be excluded. Is it possible to override the full set ...

© 2022 - 2024 — McMap. All rights reserved.