Skip to content

ramazansakin/spring-boot-mongo-db

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot REST API Using Spring Data MongoDB Tutorial

Spring Boot REST API Using Spring Data MongoDB Tutorial

In this article, I’m going to explain how to use the MongoDB database with a Spring Boot application using a practical scenario. Additionally, I’m going to develop a REST API covering CRUD operations to show the practical usage of using MongoDB inside a spring boot application.

Technologies going to use,

  • Java 1.8
  • Spring Boot 2.3.4 RELEASE
  • Spring Data MongoDB
  • Lombok
  • Gradle
  • IntelliJ Idea for IDE

Main topics I’m going to discuss here,

  • Adding Required Dependencies
  • Defining API Endpoints
  • Basic Architecture Inside The Project
  • Developing the API
    • Configure MongoDB Connection For Spring Boot
      • Configure with Mongo Server
      • Configure Spring Boot Project with MongoDB Atlas
    • Defining Model Classes as Documents
    • Defining Repository Layer
    • Adding Service Layer
    • Controller Layer to Expose REST API Endpoints
  • Testing API
  • Conclusion

📄 Original Tutorial Spring Boot REST API Using Spring Data MongoDB Tutorial

Related Articles

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 100.0%