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