error: package com.mongodb.**** does not exist
I am currently working on a student management system project. I have connected my VS code to MOngoDB successfully. I also added the MongoDB connector jar file to my reference library (VS code). My code works on Eclipse but everytime I tried it to run on VS code it shows error. But VScode doesn’t show any error in my code. It only happens when I run it. Since the code is very long I am giving an exaple code:
Failed to import MongoDB libraries
I am a beginner java developer. I am currently working on a student management system project. Since I am using VS code I have created my java project using ‘no build tool’ (Didn’t chose Maven Project). I have completed the basics of java alraedy. This is the first time I am working with databases. I chose MongoDB for my project. I am using VS code IDE and I have successfully connected MongoDB to VS code.But whenever I try to import mongodb libraries to my main java code I am encountiring errors.
com.mongodb.MongoSocketOpenException: Exception opening socket (Exception in monitor thread)
I am trying to connect (Java spring boot) to an Azure Cosmo for Mongo DB and getting the following error for remote connection; but for the same code, I am able to connect to the local mongodb.
Add multiple documents with a single insertion on MongoDB and Java
I have a history collection in MongoDB. I want to be able to save List of object in a single insertion. How can I do that?