The format of the URI is:
mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
The Java driver supports the following options (case insensitive):
Replica set configuration:
Connection Configuration:
Connection pool configuration:
Write concern configuration:
Read preference configuration:
Authentication configuration:
Note: This class is a replacement for {@code MongoURI}, to be used with {@code MongoClient}. The main difference in behavior is that the default write concern is {@code WriteConcern.ACKNOWLEDGED}.
@see MongoClientOptions for the default values for all options @since 2.10.0The format of the URI is:
mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database[.collection]][?options]]
The following options are supported (case insensitive):
Replica set configuration:
Connection Configuration:
Connection pool configuration:
Write concern configuration:
Read preference configuration:
Authentication configuration:
Note: This class is a replacement for {@code MongoURI}, to be used with {@code MongoClient}. The main difference in behavior is that the default write concern is {@code WriteConcern.ACKNOWLEDGED}.
@mongodb.driver.manual reference/connection-string Connection String URI Format @see MongoClientOptions for the default values for all options @since 2.10.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|