Package | Description |
---|---|
cn.hutool.db.nosql.mongo |
MongoDB数据库操作的封装
|
Modifier and Type | Method and Description |
---|---|
static MongoDS |
MongoFactory.getDS(Collection<String> groups)
获取MongoDB数据源
|
static MongoDS |
MongoFactory.getDS(Setting setting,
Collection<String> groups)
获取MongoDB数据源
|
static MongoDS |
MongoFactory.getDS(Setting setting,
String... groups)
获取MongoDB数据源
|
static MongoDS |
MongoFactory.getDS(String... groups)
获取MongoDB数据源
多个分组名对应的连接组成集群 |
static MongoDS |
MongoFactory.getDS(String host,
int port)
获取MongoDB数据源
|
Copyright © 2024. All rights reserved.