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

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • How to connect mongodb database with spring boot and also create a table
    #mongodb #springboot #restapi #springboottutorial

ความคิดเห็น • 32

  • @michaelsafwat1953
    @michaelsafwat1953 12 วันที่ผ่านมา

    Thanks brother

  • @sadhamhussain1694
    @sadhamhussain1694 3 หลายเดือนก่อน

    Clear video.Keep it up!!

  • @sandeepasineth8446
    @sandeepasineth8446 7 หลายเดือนก่อน +1

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

  • @pixel_designs
    @pixel_designs 2 หลายเดือนก่อน

    Thanks for this man!

  • @sravanilakkoji3181
    @sravanilakkoji3181 8 หลายเดือนก่อน +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  8 หลายเดือนก่อน +1

      Can you paste the full error here?

    • @sravanilakkoji3181
      @sravanilakkoji3181 8 หลายเดือนก่อน

      @@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  8 หลายเดือนก่อน

      Thats so great to know!! Most Welcome

  • @saikumarmamiddi
    @saikumarmamiddi หลายเดือนก่อน

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

    • @unitedtoptech6288
      @unitedtoptech6288  หลายเดือนก่อน

      Go to services and turn on mongodb service

  • @emilei.9136
    @emilei.9136 หลายเดือนก่อน

    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

    • @emilei.9136
      @emilei.9136 หลายเดือนก่อน

      nvm, I had to run 'gradle clean assemble' to clean up some packages

    • @unitedtoptech6288
      @unitedtoptech6288  หลายเดือนก่อน

      did it work?

    • @emilei.9136
      @emilei.9136 หลายเดือนก่อน

      @@unitedtoptech6288 yes it did.. Thank you

    • @unitedtoptech6288
      @unitedtoptech6288  หลายเดือนก่อน

      great!

  • @himanshusrivastava7158
    @himanshusrivastava7158 6 หลายเดือนก่อน

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

    • @unitedtoptech6288
      @unitedtoptech6288  6 หลายเดือนก่อน

      No nothing like that , can you paste your whole error?

  • @shrikaramm
    @shrikaramm 2 หลายเดือนก่อน

    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

    • @unitedtoptech6288
      @unitedtoptech6288  2 หลายเดือนก่อน

      Can you paste the whole error message?

  • @AnshulyouT
    @AnshulyouT 2 หลายเดือนก่อน +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.

    • @unitedtoptech6288
      @unitedtoptech6288  2 หลายเดือนก่อน

      did you add that in spring initializr?

    • @AnshulyouT
      @AnshulyouT 2 หลายเดือนก่อน

      @@unitedtoptech6288 no

    • @unitedtoptech6288
      @unitedtoptech6288  2 หลายเดือนก่อน

      you need to add it

    • @AnshulyouT
      @AnshulyouT หลายเดือนก่อน

      @@unitedtoptech6288 but it was never mentioned in the video, in the video sir added dependency manually .

    • @unitedtoptech6288
      @unitedtoptech6288  หลายเดือนก่อน

      i have added in 1:20

  • @raninduamarasinghe4638
    @raninduamarasinghe4638 หลายเดือนก่อน

    ❤🫡