How to connect Mongodb using Spring boot Java and create Collection in database tutorial
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
Heyy,, Thanks a lot your so great and its working 100%
Welcome 👍
Clear video.Keep it up!!
Thanks a lot!
Thanks for this man!
Happy to help!
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
Can you paste the full error here?
@@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 ☺️
Thats so great to know!! Most Welcome
I am getting connection refused error .Does tomcat webserver need to be installed first ?
No nothing like that , can you paste your whole error?
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
Can you paste the whole error message?
in MongoDB Compass, I am getting the below error while connect ( 17:20 )
connect ECONNREFUSED 127.0.0.1:27017, connect ECONNREFUSED ::1:27017
Go to services and turn on mongodb service
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
nvm, I had to run 'gradle clean assemble' to clean up some packages
did it work?
@@unitedtoptech6288 yes it did.. Thank you
great!
❤🫡
cool
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.
did you add that in spring initializr?
@@unitedtoptech6288 no
you need to add it
@@unitedtoptech6288 but it was never mentioned in the video, in the video sir added dependency manually .
i have added in 1:20
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"
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.
Glad that it works now bro