Spring Boot With MongoDB CRUD Example | Java Techie

  Рет қаралды 191,973

Java Techie

Java Techie

Күн бұрын

Пікірлер: 293
@anands53
@anands53 Жыл бұрын
You never disappoint with any unwanted stuff in any of your videos. Stays on point. Clear and crisp. You got a subscriber.!
@seekndstroy2560
@seekndstroy2560 4 жыл бұрын
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.
@saurabhrangnekar
@saurabhrangnekar 3 жыл бұрын
Great video. Direct to the point. No fluff.
@swaroops3316
@swaroops3316 2 жыл бұрын
Very calm explanation, no hassle . Very nice to understand this concept. Thank you
@parthec1
@parthec1 3 жыл бұрын
Thanks for the video, quick and precise video ,,,it will help me to start with spring boot+mongo db integration,,keep making such videos,,,
@soumitralahiri100
@soumitralahiri100 2 жыл бұрын
Excellent instructions - very easy to follow along and the application worked as expected.
@vikasbalani6378
@vikasbalani6378 2 жыл бұрын
The tutorial what I was looking for!! Thanks Man!! Short , Crisp and brilliantly understandable!
@kondareddy5176
@kondareddy5176 2 жыл бұрын
Y we use that postman application
@ShinAkuma
@ShinAkuma 2 жыл бұрын
@@kondareddy5176 For sending requests to Rest endpoints. With browser you can only do GET requests.
@kondareddy5176
@kondareddy5176 2 жыл бұрын
@@ShinAkuma without postman we can't connect that spring boot to mongodb
@aerosasi
@aerosasi 4 жыл бұрын
God thank you soooo much . Was searching for this tutorial the enitire internet .. Thanks a lot !
@pulipoornashekarreddy8026
@pulipoornashekarreddy8026 3 жыл бұрын
This is a very good tutorial for beginners who are starting Spring with MongoDB
@nileshdongre5794
@nileshdongre5794 3 жыл бұрын
Good and Simple Example to understand. Thank you very much
@hegderaghav
@hegderaghav 5 жыл бұрын
Very good tutorial that covers everything to start with MongoDB and Java.
@shubhammguptaa
@shubhammguptaa 5 жыл бұрын
One of the best tutorial on this topic. Explained all the things in very easy language. Thank you so much !!!
@Javatechie
@Javatechie 5 жыл бұрын
Thanks Shubham , stay tuned !! For more update
@MasnyDan
@MasnyDan 2 ай бұрын
Jesteś totalnym gitem dzięki tobie jestem programistą zarabiającym 20k miesięcznie i jeżdżę teslą sport carbon.
@priyadharshinis2024
@priyadharshinis2024 2 жыл бұрын
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.🙏
@ritulkumar1211
@ritulkumar1211 5 жыл бұрын
Thank you soo much, sir. It was very easy to get things right. Very good explanation.
@sadrequiem
@sadrequiem 5 жыл бұрын
Good tutorial. It got me going right away with Mongo and Spring. It's very similar to working with relational dbs.
@MightyMike55
@MightyMike55 4 жыл бұрын
Awesome and well put together tutorial. I found it very precise and pragmatic. Thanks and you earned my subscription to your channel
@bhargavi_Veeru
@bhargavi_Veeru 2 жыл бұрын
Great video... Thanks for your patience and explanation.. Please make a video on spring Boot + Mong dB+ elastic search
@gauravverma-xs2sl
@gauravverma-xs2sl 4 жыл бұрын
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
@Javatechie
@Javatechie 4 жыл бұрын
Ok will do that Some shopping kart API with security am planning to do
@rabindrasahu3610
@rabindrasahu3610 6 жыл бұрын
Basanta bro thank you so much for shairing your knowledge to us.
@rahul-java-dev
@rahul-java-dev 3 жыл бұрын
Thanks for Sharing such a helpful video.
@ArshadKhan007
@ArshadKhan007 6 жыл бұрын
very well Explained Basant Sir......!!
@manueldiera6781
@manueldiera6781 3 жыл бұрын
Thank you for such a clear and concise explanation. You covered exactly what I needed and in a short amount of time. Subscribed!
@jaganasahu1220
@jaganasahu1220 4 жыл бұрын
Thanks bro.. it's helps to all of your subscriber.. nice explanation..
@simashpokharel6044
@simashpokharel6044 3 жыл бұрын
omg dude you have answer to all my questions :)
@NexonRider21
@NexonRider21 6 жыл бұрын
Very nice explanation bro.. keep it up....👌👌👍
@kizaru.p3724
@kizaru.p3724 5 жыл бұрын
Thank you for this example, it save my time.
@soknatchan3657
@soknatchan3657 4 жыл бұрын
Very good. Thanks you! I easy to understand with your training.
@azazul_haque
@azazul_haque 3 жыл бұрын
Thanks for Sharing It helped me alot.
@janakapushpakumara6755
@janakapushpakumara6755 6 жыл бұрын
superb lesson.. I got the every thing what I need to know. thank u
@andreshun4005
@andreshun4005 4 жыл бұрын
Thanks for the video!!! You have no idea how much it helped!!!
@fjhiuenjey
@fjhiuenjey 3 жыл бұрын
Nice tutorial, very clear!
@venusgoyal4705
@venusgoyal4705 3 жыл бұрын
Perfect, very well articulated, thanks!
@MrSaurus
@MrSaurus 2 жыл бұрын
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?
@Javatechie
@Javatechie 2 жыл бұрын
Please check this video kzbin.info/www/bejne/p4exgKpvibyqrtE
@MrSaurus
@MrSaurus 2 жыл бұрын
@@Javatechie I am using Eclipse, but in that video, you use IntelliJ. Would the video still help me?
@AnemUday
@AnemUday 6 жыл бұрын
Nice video, clear and crisp. Thanks for sharing.
@vaishnudevojha906
@vaishnudevojha906 4 жыл бұрын
Very helpful Sir, thanks so much
@faramirez88
@faramirez88 2 жыл бұрын
Thank you, very helpfully.
@kossitokpe5579
@kossitokpe5579 3 жыл бұрын
Thanks you for this excellent tutorial
@Javatechie
@Javatechie 3 жыл бұрын
Thanks a lot
@rexsam3134
@rexsam3134 4 жыл бұрын
Good one. Learnt momgodb from this tutorial but need to try installing it on windows 10
@rexsam3134
@rexsam3134 4 жыл бұрын
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
@Javatechie
@Javatechie 4 жыл бұрын
Please checkout in KZbin , you can get installation steps
@rexsam3134
@rexsam3134 4 жыл бұрын
@@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
@Liz-rz4pq Ай бұрын
you are a life saver
@prayagbhasin9192
@prayagbhasin9192 2 жыл бұрын
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
@Javatechie
@Javatechie 2 жыл бұрын
Okay i will do that
@girish9841
@girish9841 3 жыл бұрын
Excellent bro 👌
@9803117003
@9803117003 Жыл бұрын
Awesome 👏
@shivamtomar7426
@shivamtomar7426 5 жыл бұрын
Thanks for providing such a wonderful learning
@ameeralikhan9288
@ameeralikhan9288 5 жыл бұрын
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
@Javatechie
@Javatechie 5 жыл бұрын
Stop your server and try to give different @document
@smartEngineerShinton
@smartEngineerShinton 3 жыл бұрын
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
@Javatechie
@Javatechie 3 жыл бұрын
Okay I will
@valcmeza
@valcmeza 3 жыл бұрын
Awesome tutorial!
@ravippareek933
@ravippareek933 3 жыл бұрын
awesome.....keep helping
@Anna-tl2tb
@Anna-tl2tb 4 жыл бұрын
Thank you! Can you also, please explain how to create geographic index, how to use it in the search. Thank you
@Javatechie
@Javatechie 4 жыл бұрын
I will check and update you
@codingworld6762
@codingworld6762 5 жыл бұрын
Good explanation 👏
@babycodeur5594
@babycodeur5594 2 жыл бұрын
Thank you so much, I love you.
@babycodeur5594
@babycodeur5594 2 жыл бұрын
with the repo in extra, this is what hapiness looks like
@BiharGaurav
@BiharGaurav 2 жыл бұрын
if mongodb is installed is some other ip, where to define that IP?
@Javatechie
@Javatechie 2 жыл бұрын
In url
@Vinsmokeafc
@Vinsmokeafc 5 жыл бұрын
what if we want to return only some fields of the object model?
@Javatechie
@Javatechie 5 жыл бұрын
Create separate pojo for response with required field
@santhoshram1783
@santhoshram1783 4 жыл бұрын
Superb tutorial ✌️.
@kadamsatyajit
@kadamsatyajit Жыл бұрын
Nice tutorial
@антонанкудинов-м8п
@антонанкудинов-м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?
@Javatechie
@Javatechie 5 жыл бұрын
Can you check in your mongo db ? Whether document created or not ?
@антонанкудинов-м8п
@антонанкудинов-м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 :)
@Javatechie
@Javatechie 5 жыл бұрын
@@антонанкудинов-м8п do you have setter getter method in your entity ?
@антонанкудинов-м8п
@антонанкудинов-м8п 5 жыл бұрын
@@Javatechie Yep. in model -> Book.java i got @Getter and @Setter for Book class. They are correctly imported
@Javatechie
@Javatechie 5 жыл бұрын
@@антонанкудинов-м8п yes but did you configured lombok in your development IDE ? Try to print one getter value while saving document to mongo
@ameeralikhan9288
@ameeralikhan9288 5 жыл бұрын
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.
@Javatechie
@Javatechie 5 жыл бұрын
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
@thatchert2159
@thatchert2159 3 жыл бұрын
Same issue
@tejamanu7353
@tejamanu7353 11 ай бұрын
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)
@Javatechie
@Javatechie 11 ай бұрын
Hello buddy you need to configure Lombok in your IDE that will resolve both the issue
@tejamanu7353
@tejamanu7353 11 ай бұрын
@@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.
@Javatechie
@Javatechie 11 ай бұрын
@tejamanu7353 if you are using IntelliJ then add Lombok plugin and enable it . That’s what configuration you need to do
@tejamanu7353
@tejamanu7353 11 ай бұрын
@@Javatechie I am using eclipse IDE as of now and facing this issue.
@tejamanu7353
@tejamanu7353 11 ай бұрын
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.
@abrown1299
@abrown1299 4 жыл бұрын
excellent turorial
@supriyanimmakayala3928
@supriyanimmakayala3928 4 жыл бұрын
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
@Javatechie
@Javatechie 4 жыл бұрын
Supriya , 404 us specific to wrong URL mapping please verify your url in controller and compare with your postman URL Is both are same ?
@ajithanalluri4936
@ajithanalluri4936 3 жыл бұрын
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
@Javatechie
@Javatechie 3 жыл бұрын
Please share complete error stack to javatechie4u@gmail.com
@piyushatram4467
@piyushatram4467 4 жыл бұрын
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..?
@Javatechie
@Javatechie 4 жыл бұрын
Did you configured Lombok in your IDE
@piyushatram4467
@piyushatram4467 4 жыл бұрын
@@Javatechie no I'll try this now ..! Thanks for replying
@saketkumar8229
@saketkumar8229 3 жыл бұрын
@@Javatechie I have configured still its passing as 0.
@Javatechie
@Javatechie 3 жыл бұрын
What IDE you are using?
@saketkumar8229
@saketkumar8229 3 жыл бұрын
@@Javatechie eclipse version 2021-03
@LuciferPlaying
@LuciferPlaying 4 жыл бұрын
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!!
@abhishekpatidar9903
@abhishekpatidar9903 3 жыл бұрын
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?
@serdcevputi
@serdcevputi 3 жыл бұрын
Why in postman i successfully added my data and in mongodb i don't see this data?
@Javatechie
@Javatechie 3 жыл бұрын
Configure Lombok in your IDE
@serdcevputi
@serdcevputi 3 жыл бұрын
@@Javatechie i solved this problem thanks man
@ankushanpat273
@ankushanpat273 2 жыл бұрын
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
@akailok
@akailok 4 жыл бұрын
It's good tutorial,but very basic.you can create mini project which can help millions.
@meghac3024
@meghac3024 4 жыл бұрын
Can you please help how to print data which is in mongo db cluster using spring boot microservices... please help me in this
@Javatechie
@Javatechie 4 жыл бұрын
Where you want to print
@shahjadealam9870
@shahjadealam9870 2 жыл бұрын
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
@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.....
@anandjaisy
@anandjaisy 4 жыл бұрын
Thanks for the video, can you please make a video on Micronaut + Reactive Mongo DB CRUD operation.
@Javatechie
@Javatechie 4 жыл бұрын
Okay I will try this
@anandjaisy
@anandjaisy 4 жыл бұрын
I never got a response from you, about the videos I have commented on lots of your videos
@Javatechie
@Javatechie 4 жыл бұрын
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
@anandjaisy
@anandjaisy 4 жыл бұрын
@@Javatechie can you please upload this ASAP,
@Javatechie
@Javatechie 4 жыл бұрын
@@anandjaisy I will try to do this ASAP
@sag530
@sag530 5 жыл бұрын
Thanks sir for this video !!
@denismugane2765
@denismugane2765 4 жыл бұрын
Good tutorial on point,how do u apply custom query on the repository especially select
@vijaych
@vijaych 4 жыл бұрын
Where you have configured Mongodb server details? I am getting issue..
@Javatechie
@Javatechie 4 жыл бұрын
I configured in application.properties , may know your issue If possible share error log please
@himanshuchugh4257
@himanshuchugh4257 4 жыл бұрын
The data u entered seems structured, i heard mongodb is used for adding unstructured data, how can i insert unstructured data??
@Javatechie
@Javatechie 4 жыл бұрын
As far I understand Sturtural data can be store in RDBMS
@himanshuchugh4257
@himanshuchugh4257 4 жыл бұрын
@@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?
@Javatechie
@Javatechie 4 жыл бұрын
Could you please check my RDBMS and NoSQL comparison video to get concrete picture please
@himanshuchugh4257
@himanshuchugh4257 4 жыл бұрын
@@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!
@nicholaswhite7351
@nicholaswhite7351 3 жыл бұрын
How to access the database from Spring Boot application remotely, without running mongod?
@Javatechie
@Javatechie 3 жыл бұрын
You can use cloud mongo
@aviator9728
@aviator9728 2 жыл бұрын
Thanks for video but how to connect to mongodb server which is remote or in network but with different hostname
@Javatechie
@Javatechie 2 жыл бұрын
Configure that host in your yml
@archanamundaye8391
@archanamundaye8391 5 жыл бұрын
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
@Javatechie
@Javatechie 5 жыл бұрын
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
@archanamundaye8391
@archanamundaye8391 5 жыл бұрын
@@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.
@Javatechie
@Javatechie 5 жыл бұрын
@@archanamundaye8391 I will check and let you know
@subratdalai6238
@subratdalai6238 2 жыл бұрын
how to give an exception if data is not found like "NO data existing with ithis id"
@Javatechie
@Javatechie 2 жыл бұрын
Please check out the method of this kzbin.info/www/bejne/p4exgKpvibyqrtE
@tauheedAlzohar
@tauheedAlzohar 2 жыл бұрын
can you perform update operation with mongo db and spring boot
@only_pps
@only_pps 6 жыл бұрын
Thanks for the tutorial I have one question Is it required to create Database and collection before running the application
@Javatechie
@Javatechie 6 жыл бұрын
No Not required , but it's recommend to create before you run
@only_pps
@only_pps 6 жыл бұрын
Thanks I tried the same and it worked
@arjunagarwal2248
@arjunagarwal2248 3 жыл бұрын
the changes were not reflecting for me in mongoDb compass can someone please help...
@purshottamxp
@purshottamxp 5 жыл бұрын
Great work bro
@kondareddy5176
@kondareddy5176 2 жыл бұрын
When I followed the same video i am creating the project error came error creating bean with name mongoclientsettings
@lakshmichandhana
@lakshmichandhana 4 жыл бұрын
The data that i add from postman is not getting reflected in mongo db can u help me to fix this sir?
@Javatechie
@Javatechie 4 жыл бұрын
Check variable name should same as your input request because this is case sensitive
@lakshmichandhana
@lakshmichandhana 4 жыл бұрын
@@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-zk4yj
@SIVAKUMAR-zk4yj 5 жыл бұрын
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
@Javatechie
@Javatechie 5 жыл бұрын
Which version of spring boot you are using
@SIVAKUMAR-zk4yj
@SIVAKUMAR-zk4yj 5 жыл бұрын
@@Javatechie 4
@Javatechie
@Javatechie 5 жыл бұрын
4 version is not available Siva
@SIVAKUMAR-zk4yj
@SIVAKUMAR-zk4yj 5 жыл бұрын
Ok bro I will check and update today eod
@shashankmarri1056
@shashankmarri1056 4 жыл бұрын
Excellent video.
@aishikbhattacharya4296
@aishikbhattacharya4296 6 жыл бұрын
I am getting this error - The method save(Book) is undefined for the type BookRepository
@Javatechie
@Javatechie 6 жыл бұрын
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)
@aishikbhattacharya4870
@aishikbhattacharya4870 6 жыл бұрын
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
@Javatechie
@Javatechie 6 жыл бұрын
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
@Credi44
@Credi44 3 жыл бұрын
i am gettng 404 error in postamn but no errors in eclipse. please tell mewhat to do
@Javatechie
@Javatechie 3 жыл бұрын
Please check the URL properly
@Credi44
@Credi44 3 жыл бұрын
@@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!!
@Javatechie
@Javatechie 3 жыл бұрын
Please configure Lombok in your IDE
@Credi44
@Credi44 3 жыл бұрын
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
@Javatechie
@Javatechie 3 жыл бұрын
What IDE you are using if it is intelij then simply add Lombok plugin and restart your intelij
@hrushiamle5457
@hrushiamle5457 3 жыл бұрын
Thank You ❤️
@gkmedia6324
@gkmedia6324 2 жыл бұрын
can we use mongodb in website instead of application
@BTEEEVANSH
@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
@rockyteck7107
@rockyteck7107 2 жыл бұрын
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
@Javatechie
@Javatechie 2 жыл бұрын
Is your application up and running?
@rockyteck7107
@rockyteck7107 2 жыл бұрын
@@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
@Javatechie
@Javatechie 2 жыл бұрын
404 means you are accessing the wrong URL please validate your request url
@rockyteck7107
@rockyteck7107 2 жыл бұрын
@@Javatechie i have validated the url as and still not able to see the mappings in console and 404 error is still not solved
@Javatechie
@Javatechie 2 жыл бұрын
Mapping won't display in console.it seems spring unable to scan your beans either use proper package structure or just use @ComponentScan
@husmithasilva3773
@husmithasilva3773 4 жыл бұрын
Can you do the updated operation for same example
@Javatechie
@Javatechie 4 жыл бұрын
Please checkout my recent spring boot Crud example
@hardikralhan5962
@hardikralhan5962 3 жыл бұрын
sir, you should have given update method as well.. i saw this video for that
@Javatechie
@Javatechie 3 жыл бұрын
Hardik update is not complex first get the object by id then modify that object and simply save it .
@Javatechie
@Javatechie 3 жыл бұрын
Do let me know incase if you need source code
@hardikralhan5962
@hardikralhan5962 3 жыл бұрын
Thank you for replying sir.. I would like to have source code
@Javatechie
@Javatechie 3 жыл бұрын
Okay np i will share
@diwakar.singh_official
@diwakar.singh_official 3 жыл бұрын
Can you please help with update action with some condition input.
@saketkumar8229
@saketkumar8229 3 жыл бұрын
i am getting below error E11000 duplicate key error collection: USCC.PreTro index: _id_ dup key: { : 0 }; nested exception is com.mongodb.MongoWriteException: E11000 duplicate key error collection: USCC.PreTro index: _id_ dup key: { : 0 }
@yeongkim926
@yeongkim926 4 жыл бұрын
Thank you 😊
@roshnidash5009
@roshnidash5009 3 жыл бұрын
I am getting error in postman...can u resolve it please
@Javatechie
@Javatechie 3 жыл бұрын
What is the error
@roshnidash5009
@roshnidash5009 3 жыл бұрын
@@Javatechie I am only getting id in mongodb not the bookname and author name
@roshnidash5009
@roshnidash5009 3 жыл бұрын
@@Javatechie Please help me
@Javatechie
@Javatechie 3 жыл бұрын
Buddy configure Lombok in your IDE
@manishagarwal6134
@manishagarwal6134 4 жыл бұрын
where you are giving username password to connect to mongodb?
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
Create a Spring Boot Application Using MongoDB [Intermediate Spring Boot]
51:01
Dan Geabunea (Romanian Coder)
Рет қаралды 94 М.
Aggregation Pipelines with Spring Boot MongoDB
33:06
Sudarshan Shah
Рет қаралды 958
Couchbase with Spring Boot & Spring Data | Code Debugger
51:16
Code Debugger
Рет қаралды 9 М.
Spring Boot Tutorial - Build a Rest Api with MongoDB
1:12:30
Amigoscode
Рет қаралды 233 М.
Add,Edit,Delete,Search using Spring and Hibernate
44:19
Joseph Bagnes
Рет қаралды 559 М.
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН