Skip to content

Commit f8da2e8

Browse files
committed
GH-232 - Improve configuration property metadata in Event Publication Registry.
1 parent fd478cb commit f8da2e8

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

spring-modulith-events/spring-modulith-events-core/src/main/resources/META-INF/spring.factories

Lines changed: 0 additions & 2 deletions
This file was deleted.

spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/META-INF/spring-configuration-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"properties": [
33
{
4-
"name": "spring.modulith.events.jdbc-schema-initialization.enabled",
4+
"name": "spring.modulith.events.jdbc.schema-initialization.enabled",
55
"type": "java.lang.boolean",
66
"description": "Whether to initialize the JDBC event publication schema.",
77
"defaultValue": "false"

spring-modulith-events/spring-modulith-events-mongodb/src/main/java/org/springframework/modulith/events/mongodb/MongoDbTransactionAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
*/
3636
@AutoConfiguration
3737
@AutoConfigureBefore(TransactionAutoConfiguration.class)
38-
@ConditionalOnProperty(//
38+
@ConditionalOnProperty(
3939
name = "spring.modulith.events.mongodb.transaction-management.enabled",
4040
havingValue = "true",
4141
matchIfMissing = true)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"properties": [
3+
{
4+
"name": "spring.modulith.events.mongodb.transaction-management.enabled",
5+
"type": "java.lang.boolean",
6+
"description": "Whether to automatically enable transactions for MongoDB. Requires the database to be run with a replica set.",
7+
"defaultValue": "true"
8+
}
9+
]
10+
}

0 commit comments

Comments
 (0)