sample-spring-modulith
sample-spring-modulith copied to clipboard
The demo repository showing modulith architecture with Spring Boot and Spring Modulith
trafficstars
Modulith with Spring Boot Demo Project 
In this project, I'm demonstrating how to implement the modulith app using Spring support. Here are the docs about the project.
- How to organize the SpringBoot in modular way and use Spring Modulith to simplify and verify the app structure: Guide to Modulith with Spring Boot
Architecture
Our sample app is divided into 4 logical modules:
- department - manage
Departmententity - employee - manage
Employeeentity - gateway - expose internal modules over REST API
- organization - manage
Organizationentity
The following picture illustrates the architecture described above.

Running
You need to have JDK17+ and Maven. Also run Docker on your machine to enable Zipkin container. Then just run the app with the following command:
$ mvn spring-boot:run