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