GH-232 - Improve configuration property metadata in Event Publication Registry.

This commit is contained in:
Oliver Drotbohm
2023-07-05 17:34:23 +02:00
parent fd478cbed5
commit f8da2e86a8
4 changed files with 12 additions and 4 deletions

View File

@@ -1,2 +0,0 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.modulith.events.config.EventPublicationConfiguration

View File

@@ -1,7 +1,7 @@
{
"properties": [
{
"name": "spring.modulith.events.jdbc-schema-initialization.enabled",
"name": "spring.modulith.events.jdbc.schema-initialization.enabled",
"type": "java.lang.boolean",
"description": "Whether to initialize the JDBC event publication schema.",
"defaultValue": "false"

View File

@@ -35,7 +35,7 @@ import org.springframework.transaction.support.TransactionTemplate;
*/
@AutoConfiguration
@AutoConfigureBefore(TransactionAutoConfiguration.class)
@ConditionalOnProperty(//
@ConditionalOnProperty(
name = "spring.modulith.events.mongodb.transaction-management.enabled",
havingValue = "true",
matchIfMissing = true)

View File

@@ -0,0 +1,10 @@
{
"properties": [
{
"name": "spring.modulith.events.mongodb.transaction-management.enabled",
"type": "java.lang.boolean",
"description": "Whether to automatically enable transactions for MongoDB. Requires the database to be run with a replica set.",
"defaultValue": "true"
}
]
}