MongoDB with Spring Boot Crash Course - Full Tutorial
Vložit
- čas přidán 26. 07. 2024
- Start protecting yourself on the web at nordvpn.com/dcb or use code "dcb" to get a 2-year plan plus a bonus gift with a huge discount
In this Spring Boot tutorial, you will learn how to create a spring boot API connected with Mongo DB using spring data mongodb.
🗒 Project Source Code:
github.com/shabbirdwd53/sprin...
📚Course Content📚
⌚ (00:00) Course Intro
⌚ (00:15) What is MongoDB
⌚ (01:28) Creating SpringBoot Project with MongoDB
⌚ (02:34) Installing MongoDB
⌚ (05:56) Setting up Spring Boot Project
⌚ (07:030) Defining packages and Classes
⌚ (13:20) Building REST API to Store data
⌚ (15:43) Adding API Documentation
⌚ (20:18) Fetch Data API
⌚ (23:49) Delete API
⌚ (25:27) Fetch API with Query Annotation
⌚ (33:33) API for Generic Search with MongoTemplate
⌚ (47:09) API with Aggregation Example
⌚ (55:54) API with Aggregation and Projection Example
⌚ (01:04:25) New API to work with Files in Binary
⌚ (01:07:34) API to Store Files in Binary
⌚ (01:11:13) Download File API
⌚ (01:16:23) Next Steps
🎟 Join this channel to get access to perks:
/ @dailycodebuffer
RECOMMENDED COURSES
🎬 Spring Boot + React Full Stack Web Application with Tailwind CSS - • Spring Boot + React Fu...
🎬 Spring Security Full Course | From Registration to Login - • Spring Security Tutori...
🎬 Microservices using SpringBoot | Full Example - • Microservices using Sp...
🎬 Event-Driven Microservices with CQRS Design Pattern - • Implement CQRS Design ...
🎬 Implement SAGA Design Pattern using Spring boot and Axon Framework - • Implement SAGA Design ...
🎬 Spring Data JPA Tutorial | Full In-depth Course - • Spring Data JPA Tutori...
🎬 Deploy Springboot Microservices to Kubernetes Cluster - • Deploy Springboot Micr...
🎬 Automate Microservices deployment with Github Actions - • GitHub Actions Tutoria...
🎬 Go / Golang Full Course for Beginners - • Golang Tutorial for Be...
🎬 Node JS Full Course for Beginners: Learn in 2 Hours - • Node JS Full Course fo...
🎬 Express.js Tutorial - Beginner | 2021 - • Express.js Tutorial - ...
🎬 Redis CLI Tutorial | Complete Course - • Redis CLI Tutorial | C...
BE MY FRIEND:
👨💻. Website: www.dailycodebuffer.com/
👨🏫 Facebook: / dailycodebuffer
🐦 Twitter: / dailycodebuffer
📸 Instagram: / dailycodebuffer
🎮 GitHub: github.com/dailycodebuffer
MY FAVOURITE GEAR:
👨💻 My Macbook Air M1: amzn.to/3eFXlID
💻 ASUS ROG Zephyrus G14, 14": amzn.to/32xsXhf
💻 ASUS ROG Zephyrus G14, 14" (US): amzn.to/3xa6X6m
🎤 My Main Mic: amzn.to/3qDl0z0
🎤 My Main Mic (US): amzn.to/3awzUj7
🎙 My Secondary Mic: amzn.to/3sOZCJW
🖥 My LG Monitor: amzn.to/3zhLY3e
🖱 My Mouse: amzn.to/3eDpRKT
⌨️ My Keyboard: amzn.to/32xthMZ
RECOMMENDED BOOKS:
📙 Mastering Spring Boot 2.0 (Kindle): amzn.to/3HsOiHu
📙 Mastering Spring Boot 2.0 (US): amzn.to/3tHNUy5
📙 Building Microservices(Kindle): amzn.to/3gsA1jL
📙 Building Microservices(US): amzn.to/3dDnfNn
📙 Spring Boot in Action: amzn.to/32Nf3qW
📙 Spring Boot in Action (US): amzn.to/32DkeX9
📙 Spring Microservices in Action: amzn.to/3mQ4sCH
📙 Spring Microservices in Action(US): amzn.to/32G3Hl7
🎻 MUSIC:
🎵 Hear the Noise (Sting): czcams.com/users/audiolibrary...
“Sound effects obtained from www.zapsplat.com“
#mongodb #mongodbtutorial #springboot #DailyCodeBuffer - Věda a technologie
Start protecting yourself on the web at nordvpn.com/dcb or use code "dcb" to get a 2-year plan plus a bonus gift with a huge discount
c'mon pliz, stop
What theme are you using for your background. I find it cool and would like to have it
It is Xcode dark theme
this criteria api is one of my most troubling case.. of how to clump all diff param and search. a good material! thanks brother
Amazing work, as always! Thank you for that.
Thanks 🙏🏻
Keep Supporting 🙏🏻❤️
some of your best work yet. Very, very well done.
Thanks a lot 🙏
Thanks a lot again bro. On point tutorial!
You have great tutorials. 👍🏼
Much needed video for me right now. Thank you😊
Thanks
Hope you enjoy the course 🙏🏻❤️
Thank you so much for your time and effort .Its is so wonderful session sure after going though your videos i got better understanding.and your way of explanation is excellent keep it up waiting for your upcoming video
Amazing work, as always! Thank you
Thanks 🙏🏻
As always the rockstar is spot on with a hot topic! Shabir bhai - keep rocking.
Thank you so much 😊
Loved this course, Awesome!!
Thanks 🙏
loved your content ❤
Thank you so much for this video ,I really like your contents😍:)
Thank you so much 😊
Hey Shabbir, Awesome tutorial for beginners. All the concepts r explained really well
Thanks 🙏🏻
Best Tutorial On Internet.
Very good explanation, covering really important points for improving skills, thank you again for making the knowledge available to beginners like me.
Very useful content. Thanks brother. Want more videos like this. Keep it up
Thanks 🙏
Thank you for that!!!!, amazing video
Thanks 🙏🏻
very useful for noSql beginners. Thank you.
superb explanation, Got so much new things in the video
Thanks 🙏🏻
Thanks bro for this...watching tonight after job
Thanks 🙏🏻
Hope you enjoy the course ❤️
Amazing tutorial, thank you for the video.
Thanks 🙏🏻
your efforts are great. keep making more videos.
Thanks buddy 🙏🏻❤️
Likes the Mechanical keyboard sound tap! tap! tap!
Thanks bro. This was very helpful🙏
🙏🏻
Hey man, can you make a new tutorial about JWT with springboot? since versio 5.7 of spring security has changed some things
HI Shabeer, This is one of the best tutorial. and Make a video for validation please.
thanks quite informative. Subscribed your channel as well as liked. The Query annotation u are using it executes at the db or works as a filter in the code?
Its simply awesome brother... What a content your are providing superb bro, keep it up. Especially your way of explanation is simply superb bro ✊
Thanks buddy 🙏🏻
Extremely good learning video and very skillful
Thanks 🙏🏻
Thank you very much for this Video
Thanks 🙏🏻
Excellent course...Thank you
Thanks 🙏
Most waited video. Could you please do a video on Spring reactive, reactive kafka and reactive mongodb?
Planning on it
Hello, it's a very useful tutorial thank you so much, I just have one comment, I prefer you explain the code pieces you are using without just stating their general purpose, i.e. when you used the query.skip(0).limit(0) I didn't get your point you just stated the general purpose of the show command and made me raise a lot of questions. I like to understand every piece of code I'm using that's my whole point. Thank you again for such tutorial :D
Same here. He just skips over important parts by saying "not complicated, its so simple" .
I know but sometimes do your research. Don't expect everything on a platter.
Thanks for video. İt is very useful. I want to ask that you used embedded relations in collections. How we create one-to-many or many-to-may relations in collections. ?
Thankyou somuch bro 🙏🙏
🙏🏻
is possible use DTO java record somehow with Mongo DB, Document annotation on record class ?
Brilliant tutorial, I've been learning spring boot with MongoDb from Mongouniversity, however this one is spot-on. Very informative and covered all the basics.
As a bonus I learnt how to set up swagger as well 🙂.
Thanks buddy 🙏🏻
@@DailyCodeBuffer while setting swagger getting this error-Caused by: java.lang.NullPointerException: Cannot invoke "org.springframework.web.servlet.mvc.condition.PatternsRequestCondition.getPatterns()" because "this.condition" is null
greate video. btw, does storing binaries make the db operations slow? if so what is the option?
Please make vedios on complex nested query aggregation pipeline in depth using spring data mongodb
22:14 is this some kind of extension to get suggestions from IDE to these method-name queries? because I don't get those in my IDE (Intellij community)
Great video...
Please make a video using React as frontend and Java Spring Boot as backend + MongoDB
I will plan on it
I have a query on aggregate functionality. Can we not group by city first and then sort by age?
somehow when i test swagger ui (18:39 in the video), i got Whitelabel Error Page, how do i fix it? Even though i have same project structure as you. Thank you
Can you make a video about the Full Stack project using SpringBoot, reactjs and mySQL? Thank you
Nice tutorial
Thanks 🙏🏻
Thanks Shabbir for the wonderful content.
SpringBoot-3.0.0. Java-19 then please add javax.servlet Dependency.
javax.servlet
javax.servlet-api
4.0.1
provided
I faced two issues
1) Lombok @Data didnt resolve the getters
2) Swagger2 didnt work for java -19. Is anything needs to be added in SpringFoxConfig?
Please make a Banking Application or Microservice Application with all features like sending mails, user verification , Transaction details sent to Mail etc...(using React JS as frontend)
Or can focus on Backend only...
What is the need of creating the PersonService Interface and its implementation separately, we can just create a PersonSevice class.
Generally, I have seen Interface of a Repository and its implementation is created, not for service.
Can you elaborate on this?
Hello sir, , why are u passing personId in RequestBody ?? Is there any function in mongodb
like in MySQL we have auto generated so that primary key may be different ?? How to make personId unique for every user in mongodb without passing the id from user end ??
can you doing unit testing full tutorial in spring boot project for beginner
thankyou
You're welcome!
Can we implement ACID property in Springboot for mongoDB. If so, how can we implement it.
its just awesome . thank you so much making my day easier .
i want your help , like i am having more than 10k records and when i am fetching all (findAllById) using springboot mongo its takes a lot of time . could you please help me how can i optimize time or scale this using springboot
thanks
You're welcome!
Can you give example of latest time series implementation
Is there any video available where we can fetch data from mongo db and display it in a jsp page..
Make a video on detailed oops and design patterns or solid principals
Working on it
What all plugins you are using, you are able to see all the available options inside @Query(value), for e.g. $gt, $gte, $lt, $lte, etc. But I can't see, for me it just looks like a simple string
Great Video but i have two questions
1) As mongoDB is schemaless, is it better to use mongo Driver APIs rather than using a POJO for CRUD operation?
2) While building a dynamic search API, how to add proper indexing for better performance?
1) Depends on the project.
2) Google it.
How can I connect mongodb atlas with my spring boot application?
If "address" is stored in another document names "addressDb" what would we do?
Please make a video how to store image on cloudinary
have you done any video on mongodb transaction?
I have also bought an udemy course for this but first I will finish watching this video
Thanks!!
Don't by courses, bro. You can get all the knowledge for free on youtube, documentation and blogs. That + personal projects = win.
Springfox deprecated. please provide alternate for springfox to proceed furthur. Thanks
Please share src code of this project repository download links for practice. How i can get access src code . Address details required
Hello 👋 my brother. First of all thank you for all of your effort. Your teaching methods are so wonderful. And one more question I like your font style which color scheme or theme do you use on your IDE I want to my setup of IDE same color theme as you have.
Thank you so much 😊
It is Xcode Dark theme with Atom dark icon pack and font is Monaco
@@DailyCodeBuffer thanks for every thing my brother I learnt a lot form your channel 😘
Thanks 🙏🏻
Keep Supporting
@@DailyCodeBuffer always bro
can we combine itu using web flux ?
Super
Thanks 🙏🏻
Please create a video on how to deploy microservices using docker. How to make docker containers communicate.
I have video on the same on channel.
You can check Microservice deployment with Kubernetes
😊❤
🤩🤩🥳🙌🙌
🙏🏻❤️
Can you make a video on Jackson api, json to java obj , java obj to json , converting ????
where can I find STudio3T URL Link for connection
Sir, please make video on Optional class in Java 8 and its uses.
I am planning on it
why are you doing a 'pause' after saying the word 'the' every single time??
pls post Kafka and rabbit mq tutorial
Hey, what theme are you using for intellij
Xcode Dark theme
How to handle transaction
What if we want add some meta data to the APIs that needs to be displayed in swagger ui like description etc...
We can add using annotation configuration for all particular Rest endpoint
@@DailyCodeBuffer those annotations from swagger apis or spring? Give me some example or one annotation please
Can you please explain what is @Autowire used for ?When to use it ? where all can i use it ?
It is used to achieve loose coupling. Basically, you use @Autowire on an instance's reference and spring automatically creates the object of the class which implements that instance.
Which theme are you using?
Xcode Dark theme
I'm just started watching spring boot master class. Should i watch this after completing that?
That would be good 👍
i do not understand where to start and how to learn spring and springboot beacuse of lots of module. is it any guide or course if you recommend to me
I have a course on my channel, most of the part is covered which are required in day to day development
Spring core basics (beans, AOP, dependency injection, configurations,) -> Spring MVC -> Spring Security -> Spring Data. These four are a must to know. Rest of the modules you will learn when you need them.
Tutorial is good, but I am complete beginner, so it was still a little hard for me to understand what is happening when you are so fast.
Mongo vs Cassandra?
I can plan on it
Good Topic 👍
Hello Shabbir
Daily leetcode challenge for DailyCodeBufferArmy ❤️
Great suggestion 👍
11:00
Good content loved it but pls do not use "The" 7 times in once sentence
Nice
if >> List hobby;
how to find all document with a hobby say "reading"
String myhobby="reading"
how to create the criteria where given hobby can searched in list and if found the that record is returned
what to change in this? >>> criteria.add(Criteria.where("hobby").nin(myhobby));