We know that we have some starters available, so let's make use of them to save some time. The service that we are going to create will be the simple REST microservice for storing and retrieving entities from a database: books, in our case. We are not going to implement authentication and security features, just to make it as clean and simple as possible. Books will be stored in an in-memory relational H2 database. We are going to build and run our bookstore with Maven, so let's begin with the pom.xml build file.
Coding the Spring Boot microservice
Maven build file
As you will see, the parent project for our own service is spring-boot-starter-parent. Spring this is the parent project providing dependency and plugin...