Created
April 12, 2019 22:49
-
-
Save tcelik/2e081a151c6db1251a62cd0e614b8e41 to your computer and use it in GitHub Desktop.
MongoDB ATLAS Connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MongoClientURI uri = new MongoClientURI( | |
"mongodb+srv://tugberk:<pass>@couples-list-chvsn.mongodb.net/test?retryWrites=true"); | |
MongoClient mongoClient = new MongoClient(uri); | |
MongoDatabase database = mongoClient.getDatabase("wishdb"); | |
for (var document : database.getCollection("wishs").find()) | |
System.out.println(document.get("todo")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
orm yok, yani ben nesne verim o kaydetsin yok doğrudan insert document istiyor.
Çözüm: Spring boot kullan. Orm'yi bizim yerimize yapsın.