Skip to content

Spring Cloud OpenFeign

SirajChaudhary edited this page Sep 25, 2022 · 1 revision

Spring Cloud OpenFeign is a declarative REST client for spring boot microservices.

Step1: Add spring cloud openfeign dependency in pom.xml in microservice where we create OpenFeign client

<!-- spring cloud starter openfeign -->
<dependency>
	<groupId>org.springframework.cloud</groupId>
	<artifactId>spring-cloud-starter-openfeign</artifactId>
	<version>${spring-cloud.version}</version>
</dependency>

Step2: Create a OpenFeign client

Step3: Use a OpenFeign client

Clone this wiki locally