Integrating an application in Eureka Server
In this recipe, we’ll integrate two applications into Eureka Server, which we deployed in the previous recipe. One application provides football data, which the other application consumes. We’ll use Eureka Server to register both applications, at which point the consumer will use Eureka Server to discover the provider application.
Getting ready
In addition to Eureka Server, which we deployed in the previous recipe, we’ll reuse the applications we created in the Defining responses and data model exposed by the API and Consuming a RESTful API from another Spring Boot application recipes in Chapter 1.
As a starting point, you can use the applications that I’ve prepared in this book’s repository: https://github.com/PacktPublishing/Spring-Boot-3.0-Cookbook. You can find the code in the chapter4/recipe4-2/start
folder.
How to do it...
We’ll integrate the football
and albums
applications from...