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

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • How to connect mongodb database with spring boot and also create a table
    #mongodb #springboot #restapi #springboottutorial

Комментарии • 34

  • @saikumarmamiddi
    @saikumarmamiddi 2 месяца назад

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

  • @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 2 месяца назад

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

    • @unitedtoptech6288
      @unitedtoptech6288  2 месяца назад

      i have added in 1:20

  • @sravanilakkoji3181
    @sravanilakkoji3181 9 месяцев назад +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  9 месяцев назад +1

      Can you paste the full error here?

    • @sravanilakkoji3181
      @sravanilakkoji3181 9 месяцев назад

      @@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  9 месяцев назад

      Thats so great to know!! Most Welcome

  • @MrKosynus
    @MrKosynus 14 дней назад

    You are a great help, Thanks for the tutorial!

  • @sandeepasineth8446
    @sandeepasineth8446 8 месяцев назад +1

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

  • @shrikaramm
    @shrikaramm 3 месяца назад

    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

  • @raninduamarasinghe4638
    @raninduamarasinghe4638 2 месяца назад

    ❤🫡

  • @emilei.9136
    @emilei.9136 2 месяца назад

    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

  • @himanshusrivastava7158
    @himanshusrivastava7158 7 месяцев назад

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

    • @unitedtoptech6288
      @unitedtoptech6288  7 месяцев назад

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

  • @michaelsafwat1953
    @michaelsafwat1953 Месяц назад

    Thanks brother

  • @pixel_designs
    @pixel_designs 3 месяца назад

    Thanks for this man!

  • @sadhamhussain1694
    @sadhamhussain1694 3 месяца назад

    Clear video.Keep it up!!