How to scaffold a Spring Boot service with modern defaults
When to use: Greenfield Boot project and you don't want to re-decide every convention.
Flow
-
Describe the serviceScaffold a Spring Boot 3.2 REST service 'orders-service' with JPA, PostgreSQL, Flyway, and Testcontainers.✓ Copied→ Proper project layout + pom/build.gradle + baseline migrations
-
Add a featureAdd an /orders endpoint with POST/GET and validation.✓ Copied→ Controller + service + repository + validation
-
Integration testsAdd integration tests using Testcontainers PostgreSQL.✓ Copied→ Tests boot a container, hit endpoints, pass
Outcome: A running Boot service with tests.
Pitfalls
- Claude defaults to field injection — Skill prompts constructor injection; if not, re-ask explicitly