Skip to content

spring-injection:BeanProducerMustBeDeclaredInConfigurationComponent is too strict #65

@cl90

Description

@cl90

Using OpenFeign, Configuration classes are passed as configuration parameter of the @FeignClient annotation and should not be annotated with @Configuration. Otherwise, it would be come a default configurations source causing unwanted behavior if multiple FeignClients with different configurations exist.

See https://docs.spring.io/spring-cloud-openfeign/docs/current/reference/html/#spring-cloud-feign-overriding-defaults

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions