Skip to content

Apply specific Interceptor at Default Configuration. #1273

Description

@jaemyeong-moon

first of all. appreciate that your support.
I'm trying to apply an interceptor but, it comes to be global applying at the all of my Clients.
for example,

@Configuration
..
    @Bean
    public RequestInterceptor requestInterceptorA() {
        return new AuthRequestInterceptor();
    }
 
@Configuration
..
    @Bean
    public RequestInterceptor requestInterceptorB() {
        return new AuthRequestInterceptor2();
    }
 

there are 2 configuration for FeignClient and it works globally.

So, there's a guide to apply specific configuration for a client like this

@FeignClient( ... configuration = XXX.class) //the configuration class should be not @Configuration.

then, it works.

there's my wondering.

when I see your guide

Image

I can set Interceptors by properties like this on yaml.

It doesn't work and I don't know how to apply it.

there's someone who wondering like me for this issues, I can't find the answer.

So, Can you check and lemme know?

thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions