Clean Architecture for Spring Boot
Implements Clean Architecture, Hexagonal patterns, and Domain-Driven Design for modern Java and Spring Boot applications.
This skill automates the implementation of robust, maintainable, and highly testable Java 21+ applications by enforcing strict separation of concerns through Clean Architecture and Hexagonal patterns. It guides developers in creating framework-independent domain models using DDD tactical patterns like entities, aggregates, and value objects, while managing infrastructure dependencies through clear ports and adapters. It is particularly useful for refactoring legacy monoliths or architecting scalable new services in Spring Boot 3.5+, ensuring business logic remains decoupled from external frameworks and databases.
Key Features
01Domain-Driven Design (DDD) tactical patterns for aggregates and value objects
02Implementation of Ports and Adapters for swappable infrastructure
03Automated package structuring for Hexagonal and Clean Architecture layers
04Framework-independent domain model generation using Java 21 records
05165 GitHub stars
06Guidance on decoupling business logic from Spring Boot framework dependencies
Use Cases
01Implementing domain-driven logic that remains easily testable without a Spring context
02Refactoring a tightly coupled Spring Boot monolith into a maintainable layered architecture
03Architecting a new microservice with a clear separation between business logic and external systems