-
Notifications
You must be signed in to change notification settings - Fork 813
Open
Labels
Description
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
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.