It would work automatically if you had the same package structure in both projects. See how the search for feign clients is performed by default.

In other cases, you need to specify basePackages of basePackageClasses attributes of @EnableFeignClients annotation (in the app where you need to inject your feign client). Note that if you do that, then the default behavior (scanning the current package where this annotation is placed) stops working, so you need to specify it manually too in this case.

Answer from amseager on Stack Overflow
🌐
Maven Repository
mvnrepository.com › artifact › io.github.openfeign › feign-httpclient
Maven Repository: io.github.openfeign » feign-httpclient
1 week ago - Maven Plugins · Testing · Language Runtime · Android Packages · JVM Languages · Logging Frameworks · JSON Libraries · Java Specifications · Core Utilities · Annotation Libraries · Web Assets · Mocking · HTTP Clients · Concurrency Libraries · Logging Bridges · Dependency Injection · XML Processing · Web Frameworks · I/O Utilities · Code Generators · View All · Home » io.github.openfeign » feign-httpclient ·
🌐
Maven Repository
mvnrepository.com › artifact › io.github.openfeign
Maven Repository: io.github.openfeign
aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven mobile module npm osgi persistence plugin resources rlang sdk server service ...
🌐
Jar-Download
jar-download.com › home › org.springframework.cloud › spring-cloud-openfeign-core › 2.1.1.release › source code › feignclient.java
org.springframework.cloud.openfeign.FeignClient Maven / Gradle / Ivy
Can contain override * @Bean definition for the pieces that make up the client, for instance * {@link feign.codec.Decoder}, {@link feign.codec.Encoder}, {@link feign.Contract}. * * @see FeignClientsConfiguration for the defaults * @return list of configurations for feign client */ Class[] configuration() default {}; /** * Fallback class for the specified Feign client interface.
🌐
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 should always write test cases for your Feign Client. Spring Boot Cloud module spring-cloud-contract lets you use WireMock in your test cases to mock the API data. If your Spring Boot application is using the default Tomcat embedded server then you can add spring-cloud-starter-contract-stub-runner dependency to your maven (or gradle) and add @AutoConfigureWireMock at the class level to use Wiremock in your tests.
🌐
Jar-Download
jar-download.com › home › org.springframework.cloud › spring-cloud-netflix-core › 1.4.1.release › source code › feignclient.java
org.springframework.cloud.netflix.feign.FeignClient Maven / Gradle / Ivy
org.springframework.cloud.netflix.feign.FeignClient maven / gradle build tool code. The class is part of the package ➦ Group: org.springframework.cloud ➦ Artifact: spring-cloud-netflix-core ➦ Version: 1.4.1.RELEASE
🌐
Baeldung
baeldung.com › home › spring › spring cloud › introduction to spring cloud openfeign
Introduction to Spring Cloud OpenFeign | Baeldung
February 19, 2026 - The value argument passed in the @FeignClient annotation is a mandatory, arbitrary client name, while with the url argument, we specify the API base URL.
🌐
Spring
spring.io › projects › spring-cloud-openfeign
Spring Cloud OpenFeign
Declarative REST Client: Feign creates a dynamic implementation of an interface decorated with JAX-RS or Spring MVC annotations
Find elsewhere
🌐
Maven Repository
mvnrepository.com › artifact › io.github.openfeign › feign-core › 9.1.0
Maven Repository: io.github.openfeign » feign-core » 9.1.0
aar amazon android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library maven mobile module npm osgi plugin resources rlang sdk server service spring sql starter ...
🌐
GeeksforGeeks
geeksforgeeks.org › springboot › spring-boot-microservices-communication-using-feignclient-with-example
Spring Boot Microservices Communication using FeignClient with Example - GeeksforGeeks
July 23, 2025 - Writing web services with the help of FeignClient is very easier. FeignClient is mostly used to consume REST API endpoints which are exposed by third-party or microservice. For Maven: Add this dependency to the pom.xml file.
🌐
Maven Repository
mvnrepository.com › artifact › io.github.openfeign › feign-httpclient › 12.3
Maven Repository: io.github.openfeign » feign-httpclient » 12.3
aar amazon android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library maven mobile module npm osgi plugin resources rlang sdk server service spring sql starter ...
🌐
Jar-Download
jar-download.com › home › io.github.openfeign › feign-core › 10.0.1 › source code › client.java
feign.Client Maven / Gradle / Ivy
feign.Client maven / gradle build tool code. The class is part of the package ➦ Group: io.github.openfeign ➦ Artifact: feign-core ➦ Version: 10.0.1
🌐
Maven Central
central.sonatype.com › artifact › tech.corefinance › common-feign-client
common-feign-client - tech.corefinance - Maven Central
--> <!-- do_not_remove: published-with-gradle-metadata --> <modelVersion>4.0.0</modelVersion> <groupId>tech.corefinance</groupId> <artifactId>common-feign-client</artifactId> <version>0.0.18</version> <name>Core finance common-feign-client</name> <description>Core finance common-feign-client.</description> <url>https://corefinance.tech/</url> <licenses> <license> <name>The Apache License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> </license> </licenses> <developers> <developer> <id>dbaotrung</id> <name>Trung Doan</name> <email>doanbaotrung@gmail.com</email> </
🌐
GitHub
github.com › neocorp › feign-client-example › blob › master › pom.xml
feign-client-example/pom.xml at master · neocorp/feign-client-example
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> · <groupId>com.example.feignclient</groupId> <artifactId>feignclient</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> ·
Author: neocorp
🌐
Maven Central
central.sonatype.com › artifact › ga.rugal › feign-client-generator
ga.rugal:feign-client-generator - Maven Central
<dependency> <groupId>ga.rugal</groupId> <artifactId>feign-client-generator</artifactId> <version>1.0.0</version> </dependency> ... <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>ga.rugal</groupId> <artifactId>parent</artifactId> <version>1.4.0</version> </parent> <artifactId>feign-client-generator</artifactId> <version>1.0.0</version> <name>Openapi client generator for Spring Boot OpenFei
🌐
Maven Central
central.sonatype.com › artifact › io.github.openfeign › feign-httpclient
io.github.openfeign:feign-httpclient - Maven Central - Sonatype
--> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>io.github.openfeign</groupId> <artifactId>feign-parent</artifactId> <version>13.13</version> </parent> <artifactId>feign-httpclient</artifactId> <name>Feign Apache HttpClient</name> <description>Feign Apache HttpClient</description> <dependencyManagement> <dependencies> <dependency> <!-- fix vulnerability introduced by transient depende
🌐
Maven Repository
mvnrepository.com › artifact › org.springframework.cloud › spring-cloud-starter-feign
Maven Repository: org.springframework.cloud » spring-cloud-starter-feign
May 23, 2019 - org.springframework.cloud » spring-cloud-starter-feign→org.springframework.cloud » spring-cloud-starter-openfeign ... The Messenger API for devs. Simple setup, strong support, and global delivery with one API. Send now. ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven ...
🌐
Medium
medium.com › @ucgorai › understanding-feign-the-declarative-web-service-client-for-microservices-7800d9d1e4d2
Understanding Feign: The Declarative Web Service Client for Microservices | by Uma Charan Gorai | Medium
December 2, 2024 - Feign simplifies REST client development in microservices by reducing boilerplate code and integrating easily with Spring Boot. Its declarative approach makes HTTP requests straightforward, while features like client-side load balancing and ...
🌐
Maven Repository
mvnrepository.com › artifact › io.github.openfeign › feign-core
Maven Repository: io.github.openfeign » feign-core
August 19, 2026 - Maven Plugins · Testing · Android Packages · Language Runtime · JVM Languages · Logging Frameworks · JSON Libraries · Java Specifications · Core Utilities · Annotation Libraries · Web Assets · Mocking · HTTP Clients · Concurrency Libraries · Logging Bridges · Dependency Injection · XML Processing · Web Frameworks · Code Generators · Android Platform · View All · Home » io.github.openfeign » feign-core ·