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