1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/silentbalanceyh-vertx-zero

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
d10073-configuration-vertx-mongoyml.md 1.3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
silentbalanceyh Отправлено 08.06.2023 19:15 1ede4c3

Configuration, vertx-mongo.yml

Another native client that zero system supported is MongoClient in vert.x, Reference. You can read current tutorials to check the details about how to configure mongo client in zero system.

1. Configuration

1.1. vertx.yml

Be sure the extension up.god.file name existing in lime node in the major configuration

zero:
  lime: mongo
  vertx:
    instance:
    - name: vx-zero
      options:
        # Fix block 2000 limit issue.
        maxEventLoopExecuteTime: 30000000000

1.2. vertx-inject.yml

mongo: io.vertx.mod.plugin.mongo.MongoInfix

1.3. vertx-mongo.yml

mongo:
  db_name: ZERO_MESH
  port: 6017
  host: 127.0.0.1
  connection_string: mongodb://localhost:6017

Just like vertx-mysql.yml configuration, here all the mongo node keys are native supported by vert.x, you can provide all the native configuration keys here for mongo db, please refer http://vertx.io/docs/vertx-mongo-client/java/#_configuring_the_client .

2. Summary

Here are the mongo db standalone configuration part and in forward tutorials we'll introduce the client usage in zero system.

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/silentbalanceyh-vertx-zero.git
git@api.gitlife.ru:oschina-mirror/silentbalanceyh-vertx-zero.git
oschina-mirror
silentbalanceyh-vertx-zero
silentbalanceyh-vertx-zero
master