Generating skeleton microservices
Now it’s time to see how we can create projects for our microservices. The final result for this topic can be found in the $BOOK_HOME/Chapter03/1-spring-init
folder. To simplify setting up the projects, we will use Spring Initializr to generate a skeleton project for each microservice. A skeleton project contains the necessary files for building the project, along with an empty main
class and test class for the microservice. After that, we will see how we can build all our microservices with one command using multi-project builds in the build tool that we will use, Gradle.
Using Spring Initializr to generate skeleton code
To get started with developing our microservices, we will use a tool called Spring Initializr to generate skeleton code for us. Spring Initializr is provided by the Spring team and can be used to configure and generate new Spring Boot applications. The tool helps developers to choose additional Spring modules to be...