◐ Shell
clean mode source ↗

GitHub - rozza/mongo-java-quickstart: Quick starts for using mongodb with java

Get started quickly using MongoDB and Java.

Using the gradle wrapper to manage dependencies all that's needed to get up and running and connecting to MongoDB via the Java Driver is:

QuickStart.java will connect to the local MongoDB and count the number of documents in a test collection.
From there you can start and run test code or build your own application.

Getting Started:

Each branch contains the source code for the various versions or you can download a zip directly: