In this article, I would like to show how spring boot application can be integrated with MongoDB (Schema-Less, Document Based NoSQL Database). To know more about MongoDB, refer here.

I have created a simple Spring Boot application with UserInfo as the entity. This adheres to the document containing user information. Moreover UserInfo also has some embedded documents like Name, DOB, Location etc.

Maven Dependencies:

To start with, created a spring boot application with below maven dependencies.

Nagarajan Sivathanu

Software Craftsman who loves to explore and evolve

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store