Modular applications with Spring Boot
= Spring Modulith image:https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A["Revved up by Develocity", link="https://ge.spring.io/scans?search.rootProjectNames=Spring Modulith"]
:docs: https://docs.spring.io/spring-modulith/reference/
Spring Modulith allows developers to build well-structured Spring Boot applications and guides developers in finding and working with link:{docs}fundamentals.html#modules[application modules] driven by the domain. It supports the link:{docs}verification.html[verification] of such modular arrangements, link:{docs}testing.html[integration testing] individual modules, link:{docs}production-ready.html#observability[observing] the application's behavior on the module level and creating link:{docs}documentation.html[documentation snippets] based on the arrangement created.
== Quickstart
pom.xml:
+
[source, xml] org.springframework.modulith
spring-modulith-bom
2.0.5
import
pom
org.springframework.modulith
spring-modulith-starter-test
test□ Example
└─ □ src/main/java
├─ □ example
| └─ Application.java
├─ □ example.inventory
| └─ …
└─ □ example.order
└─ …
ApplicationModules model], run link:{docs}verification.html[verifications] and link:{docs}documentation.html[create documentation snippets].
+
[source, java]class ApplicationTests {
@Test void writeDocumentationSnippets() {
var modules = ApplicationModules.of(Application.class).verify();
new Documenter(modules)
.writeModulesAsPlantUml()
.writeIndividualModulesAsPlantUml();
target/modulith-docs.
. Run link:{docs}testing.html[integration tests] for individual application modules.
+
[source, text, subs="macros"]□ Example └─ □ src/test/java └─ □ example.order └─ OrderModuleIntegrationTests.java
@ApplicationModuleTests class OrderModuleIntegrationTests {
== Reference documentation
Find the reference documentation link:{docs}[here].
== Contributing
https://help.github.com/articles/creating-a-pull-request[Pull requests] are welcome. Note, that we expect everyone to follow the https://github.com/spring-projects/.github/blob/main/CODE_OF_CONDUCT.md[code of conduct].
=== What you will need
=== Get the Source Code
Clone the repository
=== Build the code
To compile, test, and build
== License Spring Modulith is Open Source software released under the https://www.apache.org/licenses/LICENSE-2.0.html[Apache 2.0 license].
No open issues yet, or sync has not completed.