Skip to main content

Posts

Showing posts with the label mongodb

A noob Introduction to creating a REST API using Spring Boot and MongoDB

Intro This post is a beginner's guide to getting started with creating a simple REST API within seconds using Spring Boot and MongoDB. Contains all basic CRUD operations. Few confusions I faced as a beginner was when packaging was done and Spring Boot could locate several components. So this blog post will follow the standard packaging alongside the implementation. For further understanding of the annotations to be used, [1] and [2] can be referenced Prerequisites  Maven MongoDB setup Code Step 1 : Initiate maven directory structure |__src          |__main                      |__java                                 |__com.example.project                      |__resources         |__test Initiate the pom.xml as...