Another way of writing client applications for microservices is through the use of Spring Cloud Netflix Feign which utilizes a declarative and easy mechanism of writing clients for RESTful endpoints.
Consuming endpoints using a declarative method
Getting started
Create a new Spring Boot application that is an independent specimen on how to enable Feign as the client solution in a client Spring Boot application that aims to consume exposed web services from typical or Eureka-registered microservices.
How to do it...
Apply the Feign client solution to Spring Boot application...