This project will give an overview on using MongoDB repository to make CRUD operation using Spring Boot application
MongoDB can handle large amounts of structured and unstructured data, making it a database of choice for web applications. The Spring framework provides powerful connectors to easily perform database operations with MongoDB.
What We Need
- A MongoDB Atlas cluster
- Java 8/11/17
- Spring Initializr (Spring web and Spring Data MongoDB must)
- Maven
What We Will Build We're going to build a grocery list for a user. In this tutorial, we'll demonstrate the following:
- Creating a POJO (Plain Old Java Object) to represent a grocery item
- CRUD operations using MongoRepository
- An alternate approach for document updates using MongoTemplate.