For things such as RequestInterceptors and MessageConverters, it is difficult to have a custom feign client configuration that includes only an specific set of interceptors and converters. This makes it harder to implement one-off clients that communicate with third party services that use extraneous APIs. I'd be great if we had a configuration that would disallow inheritance from the parent context.

For example. using the client and configuration below, only a single interceptor would be available to this client regardless of any interceptors registered globally(e.g. via the parent context)

@FeignClient(name = "fancy.client", configuration = FancyClientConfig.class, inheritParentContext = false )
public interface FancyRestClient {
    @RequestMapping(path = "/fancypath",
            method = GET,
            consumes = MediaType.APPLICATION_JSON_VALUE)
    FancyDTO getFancyDto();
}
@Configuration
public class FancyClientConfig {

    @Bean
    public RequestInterceptor FancyInterceptor(){
        return new FancyInterceptor();
    }

}

Comment From: FlackMonkey

Upvoting for feature. Would be nice to have whitelist and blacklist for config classes.