You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/faq.txt
+11-11
Original file line number
Diff line number
Diff line change
@@ -32,13 +32,13 @@ introduced in Java 9.
32
32
Which type of ``MongoClient`` should I use?
33
33
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34
34
35
-
New applications should generally use the
35
+
New applications generally use the
36
36
``com.mongodb.client.MongoClient`` interface, which supports:
37
37
38
38
- Configuration with ``MongoClientSettings`` and ``ConnectionString``. You can create instances of this interface via factory methods defined in the ``com.mongodb.client.MongoClients`` class.
39
39
- CRUD API using ``MongoDatabase``, and from there, ``MongoCollection``
40
40
41
-
You should use the ``com.mongodb.MongoClient`` class if you require support for the legacy API, which supports:
41
+
Use the ``com.mongodb.MongoClient`` class if you require support for the legacy API, which supports:
42
42
43
43
- Configuration with ``MongoClientOptions`` and ``MongoClientURI``
44
44
- CRUD API using ``DB``, and from there, ``DBCollection``. You can access this API via the ``getDB()`` method.
@@ -65,7 +65,7 @@ tasks with the ``MongoClientSettings`` class:
65
65
- :ref:`Add Listeners For Driver and Database Events <listener-mongo-client-settings-example>`
66
66
- :ref:`Get the Default Codec Registry <get-default-codec-registry-example>`
67
67
68
-
For more information on the ``MongoClientSettings`` class, see the
68
+
For more information about the ``MongoClientSettings`` class, see the
69
69
`API Documentation for MongoClientSettings <{+api+}/apidocs/mongodb-driver-core/com/mongodb/MongoClientSettings.html>`__.
70
70
71
71
.. _java-faq-connection-pool:
@@ -149,7 +149,7 @@ use as they are returned to the pool.
149
149
How do I prevent the "java.lang.NoClassDefFoundError: com/mongodb/MongoClient" error?
0 commit comments