
Architecture
Package by Feature Java Layout Instead of Package by Layer
Organise Java packages by feature instead of by layer: a layout for Spring Boot, package private visibility, shared code rules and a path to modules.
6 min read
Tag
51 posts

Organise Java packages by feature instead of by layer: a layout for Spring Boot, package private visibility, shared code rules and a path to modules.

Exclude a Spring Boot auto configuration class with an annotation or property, and learn when a custom bean or a profile is the better tool.

Structure a Spring Boot app into modules, verify the boundaries in a test, communicate through events and test one module at a time with Spring Modulith.