How to connect Mongodb using Spring boot Java and create Collection in database tutorial

Sdílet
Vložit
  • čas přidán 22. 10. 2023
  • How to connect mongodb database with spring boot and also create a table
    #mongodb #springboot #restapi #springboottutorial
  • Věda a technologie

Komentáře • 33

  • @sandeepasineth8446
    @sandeepasineth8446 Před 6 měsíci +1

    Heyy,, Thanks a lot your so great and its working 100%

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

    Clear video.Keep it up!!

  • @pixel_designs
    @pixel_designs Před 26 dny

    Thanks for this man!

  • @sravanilakkoji3181
    @sravanilakkoji3181 Před 7 měsíci +1

    Hello sir! your explaination is very clear and it is in an understandable way.Thank you .Could you please help me with timestamp error after sending the request through postman

    • @unitedtoptech6288
      @unitedtoptech6288  Před 7 měsíci +1

      Can you paste the full error here?

    • @sravanilakkoji3181
      @sravanilakkoji3181 Před 7 měsíci

      @@unitedtoptech6288 Thank you for replying sir and I got cleared on that day itself when I saw your video..Thank you for explaining very clearly ☺️

    • @unitedtoptech6288
      @unitedtoptech6288  Před 7 měsíci

      Thats so great to know!! Most Welcome

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

    I am getting connection refused error .Does tomcat webserver need to be installed first ?

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

    Hi I'm getting the message in console like application is running but database is not showing in MongoDB
    I'm not getting what's the error if anyone knew pls let me know

  • @saikumarmamiddi
    @saikumarmamiddi Před 4 dny

    in MongoDB Compass, I am getting the below error while connect ( 17:20 )
    connect ECONNREFUSED 127.0.0.1:27017, connect ECONNREFUSED ::1:27017

  • @emilei.9136
    @emilei.9136 Před 12 dny

    Hi there!
    For some reason, the @Autowire is not working for me. The variable studenRepo is null
    This is the error I am getting: "Field studentRepo in com.spring.MongoSpring.Controller.MainController required a bean of type 'com.spring.MongoSpring.Repository.StudentRepo' that could not be found." Anyone knows a solution?
    Thank you

  • @raninduamarasinghe4638

    ❤🫡

  • @AnshulyouT
    @AnshulyouT Před 20 dny +1

    Dependency 'org.springframework.boot:spring-boot-starter-data-mongodb:2.7.16' not found this error came while adding the dependency how to resolve it.

  • @mdmjagan4363
    @mdmjagan4363 Před 4 hodinami

    I had faced some error, when tried to push the JSON format data through Postman to Springboot. Because, , springboot does not cause some error but mongodb compass caused error - _id:ObjectId(66a5aa669c451e28592d2f77)
    _class:"org.test.demo4.Student"

    • @mdmjagan4363
      @mdmjagan4363 Před hodinou

      Sir, finally Isolved the error by using getter setter. But, I already mentioned the Lombok dependency , then it again and again showed some error. So, I used getter setter. Its working properly.

    • @unitedtoptech6288
      @unitedtoptech6288  Před 42 vteřinami

      Glad that it works now bro