The documentation describes how to enable compression. But there is a condition on the Client that prevent auto-configuration whenever feign clients are annotated like @FeignClient(..., configuration = SomeConfig.class)
From the log:
FeignContentGzipEncodingAutoConfiguration:
Did not match:
- @ConditionalOnBean (types: feign.Client; SearchStrategy: all) did not find any beans of type feign.Client (OnBeanCondition)
Matched:
- @ConditionalOnClass found required class 'feign.Feign' (OnClassCondition)
- @ConditionalOnProperty (feign.compression.request.enabled) matched (OnPropertyCondition)
It would be nice if you add support for that style of client configuration or add some informations for exemptions like these. By the way the interceptors using protected constructors, so i can't add them as beans to my SomeConfg class.
Kind regards,
Stefan Fellinger