How to exclude RequestInterceptor for a specific Spring Cloud Feign client?

I have several clients for which a global RequestInterceptor is defined. For one of the clients, I need this "global" interceptor, which will be excluded. Is it possible to override the full set of RequestInterceptors for a specific FeignClient?

@FeignClient(value = "foo", configuration = FooClientConfig.class)
public interface FooClient {
//operations
}

@Configuration
public class FooClientConfig{

//How do I exclude global interceptors from this client configuration?
}

The used version of spring -cloud-netflix is ​​1.1.0 M5

+4
source share

All Articles