-
Notifications
You must be signed in to change notification settings - Fork 3
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