public class MongoClientFactory extends Object implements org.springframework.beans.factory.FactoryBean<com.mongodb.MongoClient>
| 构造器和说明 |
|---|
MongoClientFactory(boolean needAuth,
List<com.mongodb.ServerAddress> seeds,
com.mongodb.MongoCredential credential) |
public MongoClientFactory(boolean needAuth,
List<com.mongodb.ServerAddress> seeds,
com.mongodb.MongoCredential credential)
public com.mongodb.MongoClient getObject()
throws Exception
getObject 在接口中 org.springframework.beans.factory.FactoryBean<com.mongodb.MongoClient>Exceptionpublic Class<?> getObjectType()
getObjectType 在接口中 org.springframework.beans.factory.FactoryBean<com.mongodb.MongoClient>public boolean isSingleton()
isSingleton 在接口中 org.springframework.beans.factory.FactoryBean<com.mongodb.MongoClient>Copyright © 2020. All rights reserved.