Class PropertiesMongoConnectionDetails
java.lang.Object
org.springframework.boot.autoconfigure.mongo.PropertiesMongoConnectionDetails
- All Implemented Interfaces:
MongoConnectionDetails
,ConnectionDetails
Adapts
MongoProperties
to MongoConnectionDetails
.- Since:
- 3.1.0
- Author:
- Moritz Halbritter, Andy Wilkinson, Phillip Webb, Scott Frederick
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.boot.autoconfigure.mongo.MongoConnectionDetails
MongoConnectionDetails.GridFs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.ConnectionString
TheConnectionString
for MongoDB.GridFS configuration.
-
Constructor Details
-
PropertiesMongoConnectionDetails
-
-
Method Details
-
getConnectionString
public com.mongodb.ConnectionString getConnectionString()Description copied from interface:MongoConnectionDetails
TheConnectionString
for MongoDB.- Specified by:
getConnectionString
in interfaceMongoConnectionDetails
- Returns:
- the connection string
-
getGridFs
Description copied from interface:MongoConnectionDetails
GridFS configuration.- Specified by:
getGridFs
in interfaceMongoConnectionDetails
- Returns:
- the GridFS configuration or
null
-