File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
source/fundamentals/connection Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -266,11 +266,12 @@ settings to modify the driver's behavior:
266
266
TXT records associated with the host. If you want to enable the processing of TXT records,
267
267
you must specify the SRV host in the connection string
268
268
using the ``applyConnectionString()`` method.
269
- .. code-block:: java
270
- :emphasize-lines: 3
271
- MongoClient mongoClient = MongoClients.create(
272
- MongoClientSettings.builder()
273
- .applyConnectionString(new ConnectionString("mongodb+srv://host1.acme.com")))
269
+ | For example:
270
+ .. code-block:: java
271
+ :emphasize-lines: 3
272
+ MongoClient mongoClient = MongoClients.create(
273
+ MongoClientSettings.builder()
274
+ .applyConnectionString(new ConnectionString("mongodb+srv://host1.acme.com")))
274
275
275
276
* - ``srvMaxHosts()``
276
277
- | Sets the maximum number of hosts the driver can connect to when using
You can’t perform that action at this time.
0 commit comments