Skip to content

Compression as stated in your documentation doesn't work for clients where custom configuration is added #323

@StefanFellinger

Description

@StefanFellinger

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions