You do not need the @Configuration in the configuration class for feign:

Configuration does not need to be annotated with @Configuration. However, if it is, then take care to exclude it from any @ComponentScan that would otherwise include this configuration as it will become the default source for feign.Decoder, feign.Encoder, feign.Contract, etc., when specified. This can be avoided by putting it in a separate, non-overlapping package from any @ComponentScan or @SpringBootApplication, or it can be explicitly excluded in @ComponentScan.

ref: https://cloud.spring.io/spring-cloud-netflix/multi/multi_spring-cloud-feign.html

Also make sure to enable feign via: @EnableFeignClients in you main config class

Answer from JoeyHolloway on Stack Overflow
🌐
Spring
docs.spring.io › spring-cloud-openfeign › docs › current › reference › html
Spring Cloud OpenFeign
Spring Cloud integrates Eureka, Spring Cloud CircuitBreaker, as well as Spring Cloud LoadBalancer to provide a load-balanced http client when using Feign. To include Feign in your project use the starter with group org.springframework.cloud and artifact id spring-cloud-starter-openfeign. See the Spring Cloud Project page for details on setting up your build system with the current Spring Cloud Release Train. ... @SpringBootApplication @EnableFeignClients public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } }
🌐
Spring Cloud
cloud.spring.io › spring-cloud-netflix › multi › multi_spring-cloud-feign.html
7. Declarative REST Client: Feign
To include Feign in your project use the starter with group org.springframework.cloud and artifact id spring-cloud-starter-openfeign. See the Spring Cloud Project page for details on setting up your build system with the current Spring Cloud Release Train. ... @SpringBootApplication ...
🌐
Baeldung
baeldung.com › home › spring › spring cloud › introduction to spring cloud openfeign
Introduction to Spring Cloud OpenFeign | Baeldung
February 19, 2026 - With this annotation, we enable component scanning for interfaces that declare they are Feign clients.
🌐
Medium
medium.com › @AlexanderObregon › navigating-client-server-communication-with-springs-feignclient-annotation-70376157cefd
Navigating Client-Server Communication with Spring’s @FeignClient Annotation
March 30, 2026 - Once the dependencies are in place, it’s time to enable Feign clients in your Spring Boot application. This is done using the @EnableFeignClients annotation.
🌐
CodingNConcepts
codingnconcepts.com › home › spring boot › configure feign client in spring boot
Configure Feign Client in Spring Boot - Coding N Concepts
June 8, 2021 - You are using @SpringBootApplication and @EnableFeignClients annotations at your application starter class file ApiApplication. Spring Boot is opinionated, when it sees the web and openfeign dependencies in the classpath, it sets up all the necessary default configurations required for FeignClient and automatically scans for the classes annotated with @FeignClient
🌐
JavaTechOnline
javatechonline.com › home › how to implement feign client in spring boot microservices?
How To Implement Feign Client In Spring Boot Microservices? - JavaTechOnline
May 3, 2026 - Configuring Retry Logic: We can configure Feign Client to automatically retry failed requests with configurable retry policies. Enabling Compression: Feign Client supports the request and response compression, which can be enabled to reduce network bandwidth usage.
🌐
Opcito Technologies
opcito.com › blogs › feign-client-powerful-and-clean-spring-boot-apis
Feign Client in Spring Boot: top way to simplify API calls
May 16, 2024 - Step 1: Enable the Feign Client inside the main class using @EnableFeign Clientsannotation and import the Feign auto-configuration annotation.
Find elsewhere
🌐
HowToDoInJava
howtodoinjava.com › home › spring cloud › spring boot openfeign client tutorial
Spring Boot OpenFeign Client Tutorial (with Examples)
September 5, 2023 - Next, we need to enable Feign Clients using @EnableFeignClients annotation that enables component scanning for all interfaces annotated with @FeignClient.
🌐
Medium
medium.com › javarevisited › feign-client-one-of-the-elegant-ways-to-integrate-services-64f5c6c03283
Feign Client: One of the Elegant Ways to Integrate Services | by Dev INTJ Code | Javarevisited | Medium
June 4, 2022 - Then, on Service A, let’s create a Feign client for it: Also, don’t forget to include the annotation to enable Feign clients: @EnableFeignClients on your configuration class or Main class — it’s necessary for component scanning of ...
🌐
Javatodev
javatodev.com › how-to-use-feign-client-in-spring-boot
How to Use Feign Client in Spring Boot
October 3, 2020 - Here we are using the third party fake API with pagination to consume using feign client. This API is hosted and open to consume for free. There are many API endpoints that cover all the HTTP methods. First, we need to enable feign client inside the application by using ‘@EnableFeignClients’ annotation in the main class.
🌐
Leyaa
leyaa.ai › home › how to use feign client in spring boot: simple guide
How to Use Feign Client in Spring Boot: Simple Guide | Leyaa.ai
March 9, 2026 - To use Feign Client in Spring Boot, add the @EnableFeignClients annotation to your main application class and define an interface annotated with @FeignClient specifying the service name or URL.
🌐
Codeboje
codeboje.de › getting-started-feignclient
Getting Started with Feign Client in Spring - codeboje
January 15, 2020 - The Feign client uses a declarative approach for accessing the API. To use it, we must first enable the Spring Cloud support for it on our Spring Boot Application with the @EnableFeignClients annotation at the class level on a @Configuration class.
🌐
Spring Framework Guru
springframework.guru › home › feign rest client for spring application
Feign REST Client for Spring Application - Spring Framework Guru
June 7, 2020 - All you have to do is to enable corresponding property: ... There is a possibility to filter those by mime types or minimum size if necessary. For additional features, you can check official Feign documentation here: Official OpenFeign documentation. In this post, we have created two services that we connected using OpenFeign declarative REST client.
🌐
GitHub
github.com › OpenFeign › feign
GitHub - OpenFeign/feign: Feign makes writing java http clients easier · GitHub
If there is a need to target a request to a different host then the one supplied when the Feign client was created, or you want to supply a target host for each request, include a java.net.URI parameter and Feign will use that value as the request target.
Author: OpenFeign
🌐
DZone
dzone.com › data engineering › data › microservices communication: feign as rest client
Microservices Communication: Feign as REST Client
May 27, 2018 - Step 4: At last, we need to tell our project that we will use Feign client, so scan its annotation. For this, we need to add the @EnableFeignClients annotation on top of EmployeeDashBoardServiceApplication.
🌐
Medium
medium.com › @deepugeorge2007travel › feignclient-springboot-microservice-cfb29f6528e7
FeignClient Springboot microservice | by Deepu George Jacob | Medium
December 7, 2023 - Feign client need dependency in ...g-cloud-starter-openfeign' ... The @EnableFeignClients annotation in Spring Cloud is used to enable the Feign client functionality in a Spring Boot application....
🌐
GeeksforGeeks
geeksforgeeks.org › springboot › spring-boot-microservices-communication-using-feignclient-with-example
Spring Boot Microservices Communication using FeignClient with Example - GeeksforGeeks
July 23, 2025 - FeignClient also known as Spring Cloud OpenFeign is a Declarative REST Client in Spring Boot Web Application. But what do you mean by Declarative REST Client? It means we need to specify the client specification as an Interface and Spring Boot will take care of the implementation for us.
🌐
Baeldung
baeldung.com › home › spring › spring boot › feign logging configuration
Feign Logging Configuration | Baeldung
February 26, 2025 - Feign client logging helps us to have a better view of the requests that have been made. To enable logging, we need to set the Spring Boot logging level to DEBUG for the class or package that contains our feign client in the application.properties ...