r/foojay • u/FrankCodeWriter • 4d ago
Keeping a Spring Boot service's structure in a YAML model instead of hand-written layers
On Foojay we published an article by Richard Kim, who leads ElastiCORE, an Apache-2.0 Gradle plugin that generates a Spring Boot application from a YAML model of a business domain.
Using the pet store sample, he explains how the model helps when the architecture or stack changes. Switching layered to hexagonal to ddd, Spring Boot 3.5 to 4.0, and Java to Kotlin took settings changes only, and the REST calls gave the same answers. The generator is also deterministic, so output keeps the same structure whichever AI assistant or prompt edited the model. Hand edits survive regeneration through a three-way merge. One caveat: layered does not enforce states and owner checks.
https://foojay.io/today/one-yaml-model-for-spring-boot-architecture-ai-coding-bi/