Integrating application with database
You can find more interesting features described in the Spring Boot specification. I would like to spend more time describing other cool functionalities provided by that framework, but we should not go too far away from the main topic—Spring for microservices. As you may recall, through including embedded MongoDB in the project, I promised you a more advanced microservice example. Before starting to work on it, let's go back for a moment to the current version of our application. Its source code is available on my public GitHub account. Clone the following Git repository to your local machine: https://github.com/piomin/sample-spring-boot-web.git.
Building a sample application
The basic example is available in the master
branch. The more advanced sample, with embedded MongoDB, is committed to the mongo
branch. In case you would like to try running more advanced sample, you need to switch to that branch usinggit checkout mongo
. Now, we need to perform some...