In order to have a microservice ready to be deployed, first we need to build it, and for that, we will use some of the knowledge that we have gained during the course of the chapters in this book. We will use Spring Boot to create a microservice that will have some tests using SpringBootTest and MockMVC, then, we will upload our microservice to GitHub so that it is available for the next sections on this chapter.
Building our application
Creating an example microservice
Now that we have our tools ready, we should create our microservice, and we will use Spring Initializr as we have done in previous chapters.
We can start by visiting the URL: https://start.spring.io/:
Spring Initializr
We have chosen to create a Maven Project...