Micronaut Data Configuration Reference

Every documented configuration property of Micronaut Data, with types, descriptions, and defaults.

Micronaut Data documentation

36 properties across 5 sections

Data Azure Cosmos Config Properties

Configuration properties for DefaultThroughputSettings

PropertyTypeDescription
azure.cosmos.database.throughput-settings.request-unitsjava.lang.IntegerSets the request units.
azure.cosmos.database.throughput-settings.auto-scalebooleanSets the auto scaled indicator for throughput.

Configuration properties for CosmosDatabaseConfiguration

PropertyTypeDescription
azure.cosmos.database.database-namejava.lang.StringSets the database name.
azure.cosmos.database.update-policyStorageUpdatePolicySets the update policy for the database to be used during startup.
azure.cosmos.database.packagesjava.util.Listthe package names to be considered during init
azure.cosmos.database.query-metrics-enabledbooleanSets the indicator telling whether query metrics will be enabled for Azure Cosmos Db query requests.

Configuration properties for CosmosContainerSettings

PropertyTypeDescription
azure.cosmos.database.container-settings[*].container-namejava.lang.StringSets the container name.
azure.cosmos.database.container-settings[*].partition-key-pathjava.lang.StringSets the container partition key path.
azure.cosmos.database.container-settings[*].throughputThroughputSettingsSets the container throughput settings.

Configuration properties for ContainerThroughputSettings

PropertyTypeDescription
azure.cosmos.database.container-settings[*].throughput-settings.request-unitsjava.lang.IntegerSets the request units.
azure.cosmos.database.container-settings[*].throughput-settings.auto-scalebooleanSets the auto scaled indicator for throughput.

Data Jdbc Config Properties

Configuration properties for DataJdbcConfiguration

PropertyTypeDescription
datasources.*.schema-generateSchemaGenerateSets the schema generation strategy.
datasources.*.batch-generatebooleanWhether to generate tables in batch.
datasources.*.dialectDialectSets the dialect.
datasources.*.packagesjava.util.ListSets the packages to include use for the purposes of schema generation.
datasources.*.schema-generate-namejava.lang.StringThe schema name that should be used for generating
datasources.*.schema-generate-namesjava.util.ListThe schema names that should be used for generating
datasources.*.transaction-per-operationbooleanThe property
datasources.*.allow-connection-per-operationbooleanThe property

Data Mongodb Config Properties

Configuration properties for MongoDataConfiguration

PropertyTypeDescription
micronaut.data.mongodb.create-collectionsboolean
micronaut.data.mongodb.driver-typeMongoDataConfiguration$DriverType
micronaut.data.mongodb.ignore-json-viewsboolean

Data R2dbc Config Properties

Configuration properties for DataR2dbcConfiguration

PropertyTypeDescription
r2dbc.datasources.*.schema-generateSchemaGenerateSets the schema generation strategy.
r2dbc.datasources.*.batch-generatebooleanWhether to generate tables in batch.
r2dbc.datasources.*.dialectDialectSets the dialect.
r2dbc.datasources.*.packagesjava.util.ListSets the packages to include use for the purposes of schema generation.
r2dbc.datasources.*.schema-generate-namejava.lang.StringThe schema name that should be used for generating
r2dbc.datasources.*.schema-generate-namesjava.util.ListThe schema names that should be used for generating

Data Runtime Config Properties

Configuration properties for PageableConfiguration

PropertyTypeDescription
micronaut.data.pageable.max-page-sizeintSets the maximum page size when binding Pageable objects.
micronaut.data.pageable.default-page-sizejava.lang.IntegerSets the default page size when binding Pageable objects and no size parameter is used. Should be smaller or equal than {@link #maxPageSize}.
micronaut.data.pageable.sort-ignore-casebooleanWhether sort ignores case
micronaut.data.pageable.sort-parameter-namejava.lang.StringThe default sort parameter name
micronaut.data.pageable.size-parameter-namejava.lang.StringThe default size parameter name
micronaut.data.pageable.page-parameter-namejava.lang.StringSets the default page parameter name
micronaut.data.pageable.sort-delimiterjava.util.regex.PatternThe delimiter to use to calculate sort order. Defaults to {@code ,}.

Configuration properties for MultiTenancyConfiguration

PropertyTypeDescription
micronaut.data.multi-tenancy.modeMultiTenancyModeSets the multi-tenancy mode.