Appendix
Spring Modulith Configuration Properties
Property | Default value | Description |
---|---|---|
|
|
Whether to configure defaults for the async processing termination, namely to wait for task completion for 2 seconds. See |
|
|
Whether to enable event externalization. |
|
|
Whether to initialize the JDBC event publication schema. |
|
|
Whether to enable JSON support for |
|
|
Whether to automatically enable transactions for MongoDB. Requires the database to be run with a replica set. |
|
|
Whether to create indexes on the . |
|
|
Whether to enable JSON support for |
|
|
Whether to enable the |
|
|
The granularity of events to publish. ( |
|
|
The |
|
|
The timezone of the dates for the events being published. |
|
|
Whether to republish outstanding event publications on restarts of the application. |
Spring Modulith modules
Starter | Typical scope | Includes |
---|---|---|
|
|
* |
|
|
* |
|
|
* |
|
|
* |
|
|
* |
|
|
* |
Module | Typical scope | Description |
---|---|---|
|
|
A Spring Boot actuator to expose the application module structure via an actuator. |
|
|
The abstractions to be used in your production code to customize Spring Modulith’s default behavior. |
|
|
The core application module model and API. |
|
|
The |
|
|
Event externalization support for AMQP. |
|
|
API to customize the event features of Spring Modulith. |
|
|
The core implementation of the event publication registry as well as the integration abstractions |
|
|
A Jackson-based implementation of the |
|
|
A JDBC-based implementation of the |
|
|
Event externalization support for JMS. |
|
|
A JPA-based implementation of the |
|
|
Event externalization support for Kafka. |
|
|
A MongoDB-based implementation of the |
|
|
The Passage of Time events implementation described here. |
|
|
Support to bootstrap an |
|
|
Observability infrastructure described observability. |
Event publication registry schemas
基于 JDBC 的事件发布注册表支持希望在数据库中存在以下数据库架构。如果您希望 Spring Modulith 为您创建架构,请将应用程序属性 spring.modulith.events.jdbc-schema-initialization.enabled
设置为 true
。
The JDBC-based event publication registry support expects the following database schemas to be present in the database.
If you would like Spring Modulith to create the schema for you, set the application property spring.modulith.events.jdbc-schema-initialization.enabled
to true
.
H2
Unresolved include directive in modules/ROOT/pages/appendix.adoc - include::partial$spring-modulith-events-jdbc-src/main/resources/schema-h2.sql[]
HSQLDB
Unresolved include directive in modules/ROOT/pages/appendix.adoc - include::partial$spring-modulith-events-jdbc-src/main/resources/schema-hsqldb.sql[]
Migrating from Moduliths
-
o.m.model.Modules
has been renamed too.s.m.model.ApplicationModules
-
o.m.model.ModuleDetectionStrategy
has been renamed too.s.m.model.ApplicationModuleDetectionStrategy
-
@o.m.test.ModuleTest
has been renamed to@o.s.m.test.ApplicationModuleTest
-
o.m.docs.Documenter.Options
has been renamed too.s.m.docs.Documenter.DiagramOptions
-
The diagram style of component diagrams now defaults to
DiagramStyle.C4
(override by callingDiagramOptions.withStyle(DiagramStyle.UML)
) -
The module canvas hides non exposed types by default. To include application-module-internal types in the canvas, configure
CanvasOptions
to….revealInternals()
. -
The output folder for component diagrams and application module canvases has moved from
moduliths-docs
tospring-modulith-docs
located in your build’s target folder (such astarget
for Maven).