You never disappoint with any unwanted stuff in any of your videos. Stays on point. Clear and crisp. You got a subscriber.!
@seekndstroy25604 жыл бұрын
Excellent tutorial for a beginner in Spring framework. Probably the only tutorial where I understood what's happening around while combining mongo with spring. Thanks again.
@saurabhrangnekar3 жыл бұрын
Great video. Direct to the point. No fluff.
@swaroops33162 жыл бұрын
Very calm explanation, no hassle . Very nice to understand this concept. Thank you
@parthec13 жыл бұрын
Thanks for the video, quick and precise video ,,,it will help me to start with spring boot+mongo db integration,,keep making such videos,,,
@soumitralahiri1002 жыл бұрын
Excellent instructions - very easy to follow along and the application worked as expected.
@vikasbalani63782 жыл бұрын
The tutorial what I was looking for!! Thanks Man!! Short , Crisp and brilliantly understandable!
@kondareddy51762 жыл бұрын
Y we use that postman application
@ShinAkuma2 жыл бұрын
@@kondareddy5176 For sending requests to Rest endpoints. With browser you can only do GET requests.
@kondareddy51762 жыл бұрын
@@ShinAkuma without postman we can't connect that spring boot to mongodb
@aerosasi4 жыл бұрын
God thank you soooo much . Was searching for this tutorial the enitire internet .. Thanks a lot !
@pulipoornashekarreddy80263 жыл бұрын
This is a very good tutorial for beginners who are starting Spring with MongoDB
@nileshdongre57943 жыл бұрын
Good and Simple Example to understand. Thank you very much
@hegderaghav5 жыл бұрын
Very good tutorial that covers everything to start with MongoDB and Java.
@shubhammguptaa5 жыл бұрын
One of the best tutorial on this topic. Explained all the things in very easy language. Thank you so much !!!
@Javatechie5 жыл бұрын
Thanks Shubham , stay tuned !! For more update
@MasnyDan2 ай бұрын
Jesteś totalnym gitem dzięki tobie jestem programistą zarabiającym 20k miesięcznie i jeżdżę teslą sport carbon.
@priyadharshinis20242 жыл бұрын
Hi, Thank you so so much for this video. On timely it helped me a lot .Keep going.Once again Thank you so so much.🙏
@ritulkumar12115 жыл бұрын
Thank you soo much, sir. It was very easy to get things right. Very good explanation.
@sadrequiem5 жыл бұрын
Good tutorial. It got me going right away with Mongo and Spring. It's very similar to working with relational dbs.
@MightyMike554 жыл бұрын
Awesome and well put together tutorial. I found it very precise and pragmatic. Thanks and you earned my subscription to your channel
@bhargavi_Veeru2 жыл бұрын
Great video... Thanks for your patience and explanation.. Please make a video on spring Boot + Mong dB+ elastic search
@gauravverma-xs2sl4 жыл бұрын
sir, you are awesome the way of your explaination is like WOW...............sir plz make a e commerce website project using spring boot..... i think this is very helpful for everyone..........thank you in advance
@Javatechie4 жыл бұрын
Ok will do that Some shopping kart API with security am planning to do
@rabindrasahu36106 жыл бұрын
Basanta bro thank you so much for shairing your knowledge to us.
@rahul-java-dev3 жыл бұрын
Thanks for Sharing such a helpful video.
@ArshadKhan0076 жыл бұрын
very well Explained Basant Sir......!!
@manueldiera67813 жыл бұрын
Thank you for such a clear and concise explanation. You covered exactly what I needed and in a short amount of time. Subscribed!
@jaganasahu12204 жыл бұрын
Thanks bro.. it's helps to all of your subscriber.. nice explanation..
@simashpokharel60443 жыл бұрын
omg dude you have answer to all my questions :)
@NexonRider216 жыл бұрын
Very nice explanation bro.. keep it up....👌👌👍
@kizaru.p37245 жыл бұрын
Thank you for this example, it save my time.
@soknatchan36574 жыл бұрын
Very good. Thanks you! I easy to understand with your training.
@azazul_haque3 жыл бұрын
Thanks for Sharing It helped me alot.
@janakapushpakumara67556 жыл бұрын
superb lesson.. I got the every thing what I need to know. thank u
@andreshun40054 жыл бұрын
Thanks for the video!!! You have no idea how much it helped!!!
@fjhiuenjey3 жыл бұрын
Nice tutorial, very clear!
@venusgoyal47053 жыл бұрын
Perfect, very well articulated, thanks!
@MrSaurus2 жыл бұрын
At 15:45, I am having an issue. It does not seem like my program has any errors, because my console is not telling me that. However, my console is not showing me a link. Also, when I try putting the project path into Postman, I keep getting a 404 error. Do you know why this is?
@Javatechie2 жыл бұрын
Please check this video kzbin.info/www/bejne/p4exgKpvibyqrtE
@MrSaurus2 жыл бұрын
@@Javatechie I am using Eclipse, but in that video, you use IntelliJ. Would the video still help me?
@AnemUday6 жыл бұрын
Nice video, clear and crisp. Thanks for sharing.
@vaishnudevojha9064 жыл бұрын
Very helpful Sir, thanks so much
@faramirez882 жыл бұрын
Thank you, very helpfully.
@kossitokpe55793 жыл бұрын
Thanks you for this excellent tutorial
@Javatechie3 жыл бұрын
Thanks a lot
@rexsam31344 жыл бұрын
Good one. Learnt momgodb from this tutorial but need to try installing it on windows 10
@rexsam31344 жыл бұрын
I used the zip version for downloading MongoDB but I dont see the installation exe in it and dont see Compass too on my desktop. My laptop doesnt allow the mongod.bat to run from the bin folder
@Javatechie4 жыл бұрын
Please checkout in KZbin , you can get installation steps
@rexsam31344 жыл бұрын
@@Javatechie The Compass does not work properly with 4.2.8 and I had to download Compass separately and configure the same. Thanks neways for MongoDB. Lookin forward for more complex commands as very few real time examples available from the admin perspective. Please refer to manual reference commands
@Liz-rz4pqАй бұрын
you are a life saver
@prayagbhasin91922 жыл бұрын
Sir very nicely explained pls make one with front end also how to take data from user in web UI and update data in mongo db
@Javatechie2 жыл бұрын
Okay i will do that
@girish98413 жыл бұрын
Excellent bro 👌
@9803117003 Жыл бұрын
Awesome 👏
@shivamtomar74265 жыл бұрын
Thanks for providing such a wonderful learning
@ameeralikhan92885 жыл бұрын
need help with below error { "timestamp": "2019-10-09T16:14:02.918+0000", "status": 500, "error": "Internal Server Error", "message": "E11000 duplicate key error collection: Bookstore.Book index: _id_ dup key: { _id: 0 }; "path": "/saveBook" } even when i am giving different id
@Javatechie5 жыл бұрын
Stop your server and try to give different @document
@smartEngineerShinton3 жыл бұрын
If we give the same booke name it should throw an exception or validate it with unique = true. Can you do a video on that
@Javatechie3 жыл бұрын
Okay I will
@valcmeza3 жыл бұрын
Awesome tutorial!
@ravippareek9333 жыл бұрын
awesome.....keep helping
@Anna-tl2tb4 жыл бұрын
Thank you! Can you also, please explain how to create geographic index, how to use it in the search. Thank you
@Javatechie4 жыл бұрын
I will check and update you
@codingworld67625 жыл бұрын
Good explanation 👏
@babycodeur55942 жыл бұрын
Thank you so much, I love you.
@babycodeur55942 жыл бұрын
with the repo in extra, this is what hapiness looks like
@BiharGaurav2 жыл бұрын
if mongodb is installed is some other ip, where to define that IP?
@Javatechie2 жыл бұрын
In url
@Vinsmokeafc5 жыл бұрын
what if we want to return only some fields of the object model?
@Javatechie5 жыл бұрын
Create separate pojo for response with required field
@santhoshram17834 жыл бұрын
Superb tutorial ✌️.
@kadamsatyajit Жыл бұрын
Nice tutorial
@антонанкудинов-м8п5 жыл бұрын
Mate, i just did everything as you showed but i got empty json docs for FindAllBooks and empty document with id=0 for Add. No java and api tester errors, but everything is empty. My package name is different, but i dont think it matters. Do u have any ideas?
@Javatechie5 жыл бұрын
Can you check in your mongo db ? Whether document created or not ?
@антонанкудинов-м8п5 жыл бұрын
@@Javatechie i have 3 documents, i have added them before start the app. Whats interesting, FindAllBooks returns 3 empty docs: [],[],[]. Post method creates document with only _Id field = 0 whatever i do. it's not a problem i think, anyway i can create docs in Compass itself, but i want Find method work :)
@Javatechie5 жыл бұрын
@@антонанкудинов-м8п do you have setter getter method in your entity ?
@антонанкудинов-м8п5 жыл бұрын
@@Javatechie Yep. in model -> Book.java i got @Getter and @Setter for Book class. They are correctly imported
@Javatechie5 жыл бұрын
@@антонанкудинов-м8п yes but did you configured lombok in your development IDE ? Try to print one getter value while saving document to mongo
@ameeralikhan92885 жыл бұрын
bro for me eclipse is not able to compile book getid getter methods using lombok anotation as you did as it is easily compiling for you...help.
@Javatechie5 жыл бұрын
Please do set-up lombok in your eclipse Follow below link javagyanmantra.wixsite.com/website/single-post/2018/02/11/How-to-configure-Lombok-in-eclipse
@thatchert21593 жыл бұрын
Same issue
@tejamanu735311 ай бұрын
Hi Basanth, Hope you are doing well. Thanks a lot for the wonderful Tutorial. I Have couple of questions to ask, 1. When I am trying to make a http request call using postman, I can see the http response. However, In the MongDB Compass GUI, I can only see the data in object format, I am unable to see all the data fields and values. Could you please assist on the same? 2. Also, I have used Lombok annotation in my Model class but when I am trying to get/call the variable in my controller class it says getvariable method is not created. Please help me on this. (I have added Lombok in my pom.xml and jar is also available in my maven dependencies)
@Javatechie11 ай бұрын
Hello buddy you need to configure Lombok in your IDE that will resolve both the issue
@tejamanu735311 ай бұрын
@@Javatechie What does it mean when you say configuring Lombok in IDE, Basically I have included Lombok dependency in my pom.xml and also added @Getter & @Setter annotations in my model class as well. Please assist me on the same. Also, when I am running my spring boot application. In the video explained by you, your console shows the end points and it also says cluster information.. However, I am not able to see that level of traces in my Ide console.
@Javatechie11 ай бұрын
@tejamanu7353 if you are using IntelliJ then add Lombok plugin and enable it . That’s what configuration you need to do
@tejamanu735311 ай бұрын
@@Javatechie I am using eclipse IDE as of now and facing this issue.
@tejamanu735311 ай бұрын
Hi Basanth, Both My issues are fixed: 1. As I am using eclipse, I had to install the Lombok jar into my IDE. 2. The reason why I am unable to get the response when make a http getBooks call is that as per the MONGODB documentation whatever field/variable we give as an "id" or tagged with @id annotation, The data type should either be "String" or "BigInteger" . If we give it as a int(It is showing error as : It is strange that "int" data type worked in the video.
@abrown12994 жыл бұрын
excellent turorial
@supriyanimmakayala39284 жыл бұрын
sir i did same wt u have done but when i do in postman i am getting error:notfound, that is 404 error wt can i do
@Javatechie4 жыл бұрын
Supriya , 404 us specific to wrong URL mapping please verify your url in controller and compare with your postman URL Is both are same ?
@ajithanalluri49363 жыл бұрын
i am new to MongoDB, in sring boot i am facing org.springframework.data.mapping.MappingException: into type int but didn't find a PersistentEntity for the latter! this error Help me with this error
@Javatechie3 жыл бұрын
Please share complete error stack to javatechie4u@gmail.com
@piyushatram44674 жыл бұрын
I followed the steps from the vdo, but after executing from postman i am unable to load data from spring boot to mondodb. its inserting default value for ex. age=0,mobile=0..?
@Javatechie4 жыл бұрын
Did you configured Lombok in your IDE
@piyushatram44674 жыл бұрын
@@Javatechie no I'll try this now ..! Thanks for replying
@saketkumar82293 жыл бұрын
@@Javatechie I have configured still its passing as 0.
@Javatechie3 жыл бұрын
What IDE you are using?
@saketkumar82293 жыл бұрын
@@Javatechie eclipse version 2021-03
@LuciferPlaying4 жыл бұрын
Love this. You have no idea how helpful this was. BTW, I have a question, This is a simple project with one collection, so what is the best file/folder structure to go with for a little bit bigger project which have 6 or 7 collections? Thanks!!
@abhishekpatidar99033 жыл бұрын
Mongodb is unstructured database, but by creating a Book class in spring boot, we created it structured. is it so? if yes then how i can save unstructured entities?
@serdcevputi3 жыл бұрын
Why in postman i successfully added my data and in mongodb i don't see this data?
@Javatechie3 жыл бұрын
Configure Lombok in your IDE
@serdcevputi3 жыл бұрын
@@Javatechie i solved this problem thanks man
@ankushanpat2732 жыл бұрын
Hi, I am upgrading Java 8 to Java 11 with spring boot 2.6.6 with mongodb While upgrading index is not created Same working with java 8 You know this issue
@akailok4 жыл бұрын
It's good tutorial,but very basic.you can create mini project which can help millions.
@meghac30244 жыл бұрын
Can you please help how to print data which is in mongo db cluster using spring boot microservices... please help me in this
@Javatechie4 жыл бұрын
Where you want to print
@shahjadealam98702 жыл бұрын
Hello, I want to connect mongo Db from my Spring Boot application to Production Database. I need to set SSL = true How can I do this from the configuration file or what are the ways to set SSL . Thanks Shahjade
@balajikrishanasamy7029 Жыл бұрын
Bro u run the main class on Java know the path variable doesn't show on my device for ex: mapped request and all delete find etc.....
@anandjaisy4 жыл бұрын
Thanks for the video, can you please make a video on Micronaut + Reactive Mongo DB CRUD operation.
@Javatechie4 жыл бұрын
Okay I will try this
@anandjaisy4 жыл бұрын
I never got a response from you, about the videos I have commented on lots of your videos
@Javatechie4 жыл бұрын
Hi Anand sorry for inconvenience , am also one working employee so based on viewers demand always I tried to prepare video . So please do coperate
@anandjaisy4 жыл бұрын
@@Javatechie can you please upload this ASAP,
@Javatechie4 жыл бұрын
@@anandjaisy I will try to do this ASAP
@sag5305 жыл бұрын
Thanks sir for this video !!
@denismugane27654 жыл бұрын
Good tutorial on point,how do u apply custom query on the repository especially select
@vijaych4 жыл бұрын
Where you have configured Mongodb server details? I am getting issue..
@Javatechie4 жыл бұрын
I configured in application.properties , may know your issue If possible share error log please
@himanshuchugh42574 жыл бұрын
The data u entered seems structured, i heard mongodb is used for adding unstructured data, how can i insert unstructured data??
@Javatechie4 жыл бұрын
As far I understand Sturtural data can be store in RDBMS
@himanshuchugh42574 жыл бұрын
@@Javatechie thats what, i couldn't find any difference in mysql and mongodb after watching your tutorial, i watched one another tutorial which was the same as yours, can you help me find practical difference in mysql and mongodb by storing unstructured data with a video tutorial?
@Javatechie4 жыл бұрын
Could you please check my RDBMS and NoSQL comparison video to get concrete picture please
@himanshuchugh42574 жыл бұрын
@@Javatechie i just saw that video,u have mentioned that nosql is used to store unstructured data, but how can i store unstructured data in mongodb?? I saw this tutorial but in this tutorial you are storing structured data in mongodb!
@nicholaswhite73513 жыл бұрын
How to access the database from Spring Boot application remotely, without running mongod?
@Javatechie3 жыл бұрын
You can use cloud mongo
@aviator97282 жыл бұрын
Thanks for video but how to connect to mongodb server which is remote or in network but with different hostname
@Javatechie2 жыл бұрын
Configure that host in your yml
@archanamundaye83915 жыл бұрын
Is there envers support for spring-boot-starter-data-mongodb? We're using spring data mongo and we want to implement Auditing support to documents when they are inserted,updated , deleted like it's there in spring-data-jpa-envers i.e. by having another collection with name as myCollection_Aud which will have all such entries for audit
@Javatechie5 жыл бұрын
Am not sure whether enver support or not but for mongo we can go for traditional auditing using audit listener so please check my first audit tutorial
@archanamundaye83915 жыл бұрын
@@Javatechie in traditional audit it only adds those 4 fields (createBy,ON, lastModifiedBy n ON) in current document. But I want to add those (like envers does) in different "MyCollection_Aud" collection.
@Javatechie5 жыл бұрын
@@archanamundaye8391 I will check and let you know
@subratdalai62382 жыл бұрын
how to give an exception if data is not found like "NO data existing with ithis id"
@Javatechie2 жыл бұрын
Please check out the method of this kzbin.info/www/bejne/p4exgKpvibyqrtE
@tauheedAlzohar2 жыл бұрын
can you perform update operation with mongo db and spring boot
@only_pps6 жыл бұрын
Thanks for the tutorial I have one question Is it required to create Database and collection before running the application
@Javatechie6 жыл бұрын
No Not required , but it's recommend to create before you run
@only_pps6 жыл бұрын
Thanks I tried the same and it worked
@arjunagarwal22483 жыл бұрын
the changes were not reflecting for me in mongoDb compass can someone please help...
@purshottamxp5 жыл бұрын
Great work bro
@kondareddy51762 жыл бұрын
When I followed the same video i am creating the project error came error creating bean with name mongoclientsettings
@lakshmichandhana4 жыл бұрын
The data that i add from postman is not getting reflected in mongo db can u help me to fix this sir?
@Javatechie4 жыл бұрын
Check variable name should same as your input request because this is case sensitive
@lakshmichandhana4 жыл бұрын
@@JavatechieMongo db collection is displaying _id and _class:"Main.Register" main is the package name in which the Register.java is residing,I am creating springboot for registration
@SIVAKUMAR-zk4yj5 жыл бұрын
Hi bro it was very simply explanation thank you bro. i did same thing in my eclipse but mapping not visible in logs . so methods are not calling . please any idea
@Javatechie5 жыл бұрын
Which version of spring boot you are using
@SIVAKUMAR-zk4yj5 жыл бұрын
@@Javatechie 4
@Javatechie5 жыл бұрын
4 version is not available Siva
@SIVAKUMAR-zk4yj5 жыл бұрын
Ok bro I will check and update today eod
@shashankmarri10564 жыл бұрын
Excellent video.
@aishikbhattacharya42966 жыл бұрын
I am getting this error - The method save(Book) is undefined for the type BookRepository
@Javatechie6 жыл бұрын
possible solution to check 1. did you add spring-boot-starter-data-mongodb dependency in your pom.xml 2. did you extends your BookRepository interface from MongoRepository please check this else let me know ,(better to share your git link)
@aishikbhattacharya48706 жыл бұрын
Hi, I was trying this from my office system this morning. I was getting erroneous results probably because of some proxy setting in my system which was maybe not allowing to download MongoRepository dependency properly. Now from my pc it is working fine. But I have a question on this context. How are we using methods like save or findAll of JPARepository without extending it
@Javatechie6 жыл бұрын
Aishik cool. These methods are not part of JpaRepository... Actually all those crud methods inherited from spring data where jpa, Mongo are implemention of that ok
@Credi443 жыл бұрын
i am gettng 404 error in postamn but no errors in eclipse. please tell mewhat to do
@Javatechie3 жыл бұрын
Please check the URL properly
@Credi443 жыл бұрын
@@Javatechie now that 404 error is gone. When i try to insert the first json object it goes into the db but if i try to insert the second element, it says duplicate key error. I checked the mongo db using compass and in that i saw that the key value is 0 and the new entry is also trying be initialised to 0 only. The other attributes like name and author name are not even shown. Can you please help me with this? I have been struggling all day!!
@Javatechie3 жыл бұрын
Please configure Lombok in your IDE
@Credi443 жыл бұрын
Can you please tell me how if you don't mind? I added the lombok dependencies in springboot in the starting like you showed. Should i do something else? thank you
@Javatechie3 жыл бұрын
What IDE you are using if it is intelij then simply add Lombok plugin and restart your intelij
@hrushiamle54573 жыл бұрын
Thank You ❤️
@gkmedia63242 жыл бұрын
can we use mongodb in website instead of application
@BTEEEVANSH Жыл бұрын
Sir , I am stuck to integrate springboot with the mongodb as it is showing error like javax.net.ssl.SSLException: Received fatal alert: internal_error , com.mongodb.MongoSocketWriteException: Exception sending message , I have tried it with jdk 11.8 and java 17 but issue continues would you guide me how can I solve it
@rockyteck71072 жыл бұрын
Hello Thanks for the video, I have tried this and able to start the server but am getting 404 error in the local host not able to hit get and post methods as well getting whitelabel error page Any Help from anyone will be helpful to me to learn on this topic
@Javatechie2 жыл бұрын
Is your application up and running?
@rockyteck71072 жыл бұрын
@@Javatechie yes am able to see the console and tomcat is also started in port but when i tried in browser local host showing white label error and am not even seeing in the console the mappings of controller
@Javatechie2 жыл бұрын
404 means you are accessing the wrong URL please validate your request url
@rockyteck71072 жыл бұрын
@@Javatechie i have validated the url as and still not able to see the mappings in console and 404 error is still not solved
@Javatechie2 жыл бұрын
Mapping won't display in console.it seems spring unable to scan your beans either use proper package structure or just use @ComponentScan
@husmithasilva37734 жыл бұрын
Can you do the updated operation for same example
@Javatechie4 жыл бұрын
Please checkout my recent spring boot Crud example
@hardikralhan59623 жыл бұрын
sir, you should have given update method as well.. i saw this video for that
@Javatechie3 жыл бұрын
Hardik update is not complex first get the object by id then modify that object and simply save it .
@Javatechie3 жыл бұрын
Do let me know incase if you need source code
@hardikralhan59623 жыл бұрын
Thank you for replying sir.. I would like to have source code
@Javatechie3 жыл бұрын
Okay np i will share
@diwakar.singh_official3 жыл бұрын
Can you please help with update action with some condition input.