From 23e4bc56985fa0dcd9ab518bb20f786ad1dfe07b Mon Sep 17 00:00:00 2001 From: Michael Weirauch Date: Sat, 4 Mar 2023 01:25:31 +0100 Subject: [PATCH] GH-158 - Add configuration metadata for spring-modulith-events-jdbc --- .../META-INF/spring-configuration-metadata.json | 10 ++++++++++ src/docs/asciidoc/40-events.adoc | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/META-INF/spring-configuration-metadata.json diff --git a/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/META-INF/spring-configuration-metadata.json b/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/META-INF/spring-configuration-metadata.json new file mode 100644 index 00000000..28d20319 --- /dev/null +++ b/spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/META-INF/spring-configuration-metadata.json @@ -0,0 +1,10 @@ +{ + "properties": [ + { + "name": "spring.modulith.events.jdbc-schema-initialization.enabled", + "type": "java.lang.boolean", + "description": "Whether to initialize the JDBC event publication schema.", + "defaultValue": "false" + } + ] +} diff --git a/src/docs/asciidoc/40-events.adoc b/src/docs/asciidoc/40-events.adoc index f4893047..5d15fb69 100644 --- a/src/docs/asciidoc/40-events.adoc +++ b/src/docs/asciidoc/40-events.adoc @@ -129,7 +129,7 @@ To actually write the event publication log, Spring Modulith exposes an `EventPu You select the persistence technology to be used by adding the corresponding JAR to your Spring Modulith application. We have prepared dedicated <> to ease that task. -The JDBC-based implementation will create a dedicated table for the event publication log, unless a table with a particular name already exists. +The JDBC-based implementation can create a dedicated table for the event publication log when the respective configuration property is enabled. For details, please consult the <> in the appendix. [[events.serialization]]