MongoDB with Spring Boot Crash Course - Full Tutorial

Sdílet
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

Komentáře • 148

  • @DailyCodeBuffer
    @DailyCodeBuffer  Před 2 lety +3

    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

  • @norulshahlamjohn1140
    @norulshahlamjohn1140 Před rokem

    this criteria api is one of my most troubling case.. of how to clump all diff param and search. a good material! thanks brother

  • @davidevangelista1774
    @davidevangelista1774 Před 2 lety +2

    Amazing work, as always! Thank you for that.

  • @HenrryWith2Rs
    @HenrryWith2Rs Před rokem +2

    some of your best work yet. Very, very well done.

  • @yogeshchaudhary621
    @yogeshchaudhary621 Před rokem +1

    Thanks a lot again bro. On point tutorial!

  • @magsadn
    @magsadn Před rokem +1

    You have great tutorials. 👍🏼

  • @str6622
    @str6622 Před 2 lety

    Much needed video for me right now. Thank you😊

  • @vishalkumar-rp4yi
    @vishalkumar-rp4yi Před 11 měsíci

    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

  • @phanimc11211
    @phanimc11211 Před 2 lety +2

    Amazing work, as always! Thank you

  • @raghavanaliassaravananm1546

    As always the rockstar is spot on with a hot topic! Shabir bhai - keep rocking.

  • @shubhampatel5804
    @shubhampatel5804 Před rokem

    Loved this course, Awesome!!

  • @chailsingh623
    @chailsingh623 Před 2 lety

    loved your content ❤

  • @nasirherawi4580
    @nasirherawi4580 Před 2 lety +1

    Thank you so much for this video ,I really like your contents😍:)

  • @erzohrakhan1
    @erzohrakhan1 Před rokem +1

    Hey Shabbir, Awesome tutorial for beginners. All the concepts r explained really well

  • @jatinguru5170
    @jatinguru5170 Před rokem

    Best Tutorial On Internet.

  • @hazel-BKJ
    @hazel-BKJ Před 4 měsíci

    Very good explanation, covering really important points for improving skills, thank you again for making the knowledge available to beginners like me.

  • @krishk2248
    @krishk2248 Před rokem

    Very useful content. Thanks brother. Want more videos like this. Keep it up

  • @curitygui78
    @curitygui78 Před 2 lety

    Thank you for that!!!!, amazing video

  • @mrpipiskin4
    @mrpipiskin4 Před rokem

    very useful for noSql beginners. Thank you.

  • @ramachandrapadhi4459
    @ramachandrapadhi4459 Před 2 lety

    superb explanation, Got so much new things in the video

  • @deltamakuba
    @deltamakuba Před 2 lety

    Thanks bro for this...watching tonight after job

  • @asifiqbal4763
    @asifiqbal4763 Před rokem

    Amazing tutorial, thank you for the video.

  • @dkumarm9078
    @dkumarm9078 Před 2 lety +1

    your efforts are great. keep making more videos.

  • @purushothamchowdary651

    Likes the Mechanical keyboard sound tap! tap! tap!

  • @nurullahsahin5273
    @nurullahsahin5273 Před 2 lety

    Thanks bro. This was very helpful🙏

  • @KenAgudelo
    @KenAgudelo Před 2 lety +9

    Hey man, can you make a new tutorial about JWT with springboot? since versio 5.7 of spring security has changed some things

  • @user-nk8eb7ku6c
    @user-nk8eb7ku6c Před 8 měsíci

    HI Shabeer, This is one of the best tutorial. and Make a video for validation please.

  • @ajaybiswal1
    @ajaybiswal1 Před 3 měsíci

    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?

  • @durgaprasadvatti872
    @durgaprasadvatti872 Před 2 lety

    Its simply awesome brother... What a content your are providing superb bro, keep it up. Especially your way of explanation is simply superb bro ✊

  • @shaileshkumar2806
    @shaileshkumar2806 Před rokem

    Extremely good learning video and very skillful

  • @dhanukalakshan1553
    @dhanukalakshan1553 Před 2 lety

    Thank you very much for this Video

  • @kumarsathish9725
    @kumarsathish9725 Před dnem

    Excellent course...Thank you

  • @JinuJinceBanterBlast
    @JinuJinceBanterBlast Před 2 lety

    Most waited video. Could you please do a video on Spring reactive, reactive kafka and reactive mongodb?

  • @hibahasan9627
    @hibahasan9627 Před rokem +3

    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

    • @pranshudixit1101
      @pranshudixit1101 Před rokem

      Same here. He just skips over important parts by saying "not complicated, its so simple" .

    • @rowland_kanu
      @rowland_kanu Před rokem

      I know but sometimes do your research. Don't expect everything on a platter.

  • @yakupbaykara1449
    @yakupbaykara1449 Před rokem

    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. ?

  • @tech_tornado99
    @tech_tornado99 Před 2 lety

    Thankyou somuch bro 🙏🙏

  • @petmik5022
    @petmik5022 Před 2 lety +1

    is possible use DTO java record somehow with Mongo DB, Document annotation on record class ?

  • @FemilShajin
    @FemilShajin Před 2 lety +4

    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 🙂.

    • @DailyCodeBuffer
      @DailyCodeBuffer  Před 2 lety +2

      Thanks buddy 🙏🏻

    • @saumyaranjan8514
      @saumyaranjan8514 Před rokem

      @@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

  • @mvs69
    @mvs69 Před rokem

    greate video. btw, does storing binaries make the db operations slow? if so what is the option?

  • @raghavendrac1053
    @raghavendrac1053 Před rokem +1

    Please make vedios on complex nested query aggregation pipeline in depth using spring data mongodb

  • @jonasjanaitis436
    @jonasjanaitis436 Před rokem

    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)

  • @ganpatinatrajan5890
    @ganpatinatrajan5890 Před 2 lety

    Great video...
    Please make a video using React as frontend and Java Spring Boot as backend + MongoDB

  • @tejachowdary309
    @tejachowdary309 Před rokem

    I have a query on aggregate functionality. Can we not group by city first and then sort by age?

  • @linhdao8041
    @linhdao8041 Před rokem

    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

  • @xXJuniorNguyenXx
    @xXJuniorNguyenXx Před 10 měsíci +1

    Can you make a video about the Full Stack project using SpringBoot, reactjs and mySQL? Thank you

  • @rajeevp3000
    @rajeevp3000 Před rokem

    Nice tutorial

  • @amith0089
    @amith0089 Před rokem +1

    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?

  • @purnasahu8766
    @purnasahu8766 Před 2 lety +1

    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...

  • @vaibhavsomani1796
    @vaibhavsomani1796 Před 4 měsíci

    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?

  • @KuldeepKumar-ki6cu
    @KuldeepKumar-ki6cu Před rokem

    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 ??

  • @sajithdilshan2936
    @sajithdilshan2936 Před 2 lety +1

    can you doing unit testing full tutorial in spring boot project for beginner

  • @MyJavaTech
    @MyJavaTech Před 10 měsíci

    thankyou

  • @agatheshm7773
    @agatheshm7773 Před 10 měsíci

    Can we implement ACID property in Springboot for mongoDB. If so, how can we implement it.

  • @arpanganguly5190
    @arpanganguly5190 Před rokem

    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

  • @santoshpattnaik480
    @santoshpattnaik480 Před 9 měsíci

    thanks

  • @rajeshchilukuri335
    @rajeshchilukuri335 Před rokem

    Can you give example of latest time series implementation

  • @NaughtyNishuu
    @NaughtyNishuu Před rokem

    Is there any video available where we can fetch data from mongo db and display it in a jsp page..

  • @sumitava1374
    @sumitava1374 Před 2 lety +1

    Make a video on detailed oops and design patterns or solid principals

  • @cdassaha5802
    @cdassaha5802 Před 4 měsíci

    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

  • @livingfantasy1240
    @livingfantasy1240 Před 2 lety +1

    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?

  • @wegarhwali5926
    @wegarhwali5926 Před rokem

    How can I connect mongodb atlas with my spring boot application?

  • @LeStark050
    @LeStark050 Před rokem

    If "address" is stored in another document names "addressDb" what would we do?

  • @gourabbanik2043
    @gourabbanik2043 Před 2 lety

    Please make a video how to store image on cloudinary

  • @rajeevp3000
    @rajeevp3000 Před rokem

    have you done any video on mongodb transaction?

  • @govardhanmani
    @govardhanmani Před 2 lety +1

    I have also bought an udemy course for this but first I will finish watching this video
    Thanks!!

    • @IvanRandomDude
      @IvanRandomDude Před 2 lety +3

      Don't by courses, bro. You can get all the knowledge for free on youtube, documentation and blogs. That + personal projects = win.

  • @Akshay_akki_MN
    @Akshay_akki_MN Před 8 měsíci

    Springfox deprecated. please provide alternate for springfox to proceed furthur. Thanks

  • @shaileshkumar2806
    @shaileshkumar2806 Před rokem

    Please share src code of this project repository download links for practice. How i can get access src code . Address details required

  • @aliksargsyan2782
    @aliksargsyan2782 Před rokem

    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.

    • @DailyCodeBuffer
      @DailyCodeBuffer  Před rokem +1

      Thank you so much 😊
      It is Xcode Dark theme with Atom dark icon pack and font is Monaco

    • @aliksargsyan2782
      @aliksargsyan2782 Před rokem

      @@DailyCodeBuffer thanks for every thing my brother I learnt a lot form your channel 😘

    • @DailyCodeBuffer
      @DailyCodeBuffer  Před rokem

      Thanks 🙏🏻
      Keep Supporting

    • @aliksargsyan2782
      @aliksargsyan2782 Před rokem +1

      @@DailyCodeBuffer always bro

  • @adamabdullah6789
    @adamabdullah6789 Před 2 lety

    can we combine itu using web flux ?

  • @sajithdilshan2936
    @sajithdilshan2936 Před 2 lety

    Super

  • @deeptarkoroy6724
    @deeptarkoroy6724 Před 2 lety

    Please create a video on how to deploy microservices using docker. How to make docker containers communicate.

    • @DailyCodeBuffer
      @DailyCodeBuffer  Před 2 lety

      I have video on the same on channel.
      You can check Microservice deployment with Kubernetes

  • @deeplife9654
    @deeplife9654 Před měsícem

    😊❤

  • @ramabookstroremalang9131

    🤩🤩🥳🙌🙌

  • @deeplife9654
    @deeplife9654 Před měsícem

    Can you make a video on Jackson api, json to java obj , java obj to json , converting ????

  • @user-qr3wn2zv4t
    @user-qr3wn2zv4t Před 6 měsíci

    where can I find STudio3T URL Link for connection

  • @punzzycool
    @punzzycool Před 2 lety

    Sir, please make video on Optional class in Java 8 and its uses.

  • @pedroruiz8414
    @pedroruiz8414 Před rokem +2

    why are you doing a 'pause' after saying the word 'the' every single time??

  • @dkumarm9078
    @dkumarm9078 Před 2 lety

    pls post Kafka and rabbit mq tutorial

  • @KunalLadhani-ku1vb
    @KunalLadhani-ku1vb Před rokem

    Hey, what theme are you using for intellij

  • @mehtasintu4577
    @mehtasintu4577 Před rokem

    How to handle transaction

  • @praveens2272
    @praveens2272 Před 2 lety

    What if we want add some meta data to the APIs that needs to be displayed in swagger ui like description etc...

    • @DailyCodeBuffer
      @DailyCodeBuffer  Před 2 lety +1

      We can add using annotation configuration for all particular Rest endpoint

    • @praveens2272
      @praveens2272 Před 2 lety

      @@DailyCodeBuffer those annotations from swagger apis or spring? Give me some example or one annotation please

  • @nogamenolife1135
    @nogamenolife1135 Před rokem

    Can you please explain what is @Autowire used for ?When to use it ? where all can i use it ?

    • @saikatsarkar7162
      @saikatsarkar7162 Před rokem

      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.

  • @JakeeReacher
    @JakeeReacher Před 2 lety

    Which theme are you using?

  • @beesetti.d.ssubhash5075

    I'm just started watching spring boot master class. Should i watch this after completing that?

  • @Atharva_kathiyawadi
    @Atharva_kathiyawadi Před 2 lety

    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

    • @DailyCodeBuffer
      @DailyCodeBuffer  Před 2 lety +1

      I have a course on my channel, most of the part is covered which are required in day to day development

    • @IvanRandomDude
      @IvanRandomDude Před 2 lety +1

      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.

  • @NaveenKumar-os8dv
    @NaveenKumar-os8dv Před rokem

    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.

  • @IvanRandomDude
    @IvanRandomDude Před 2 lety +1

    Mongo vs Cassandra?

  • @pramodpakhare6951
    @pramodpakhare6951 Před 2 lety +1

    Hello Shabbir
    Daily leetcode challenge for DailyCodeBufferArmy ❤️

  • @ajinkya3515
    @ajinkya3515 Před rokem

    11:00

  • @divakarpandey9094
    @divakarpandey9094 Před 5 měsíci

    Good content loved it but pls do not use "The" 7 times in once sentence

  • @srinathHero
    @srinathHero Před 3 měsíci

    Nice

  • @AmitsHandle
    @AmitsHandle Před rokem

    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));