How to scaffold a Spring Boot service with modern defaults
Когда использовать: Greenfield Boot project and you don't want to re-decide every convention.
Поток
-
Describe the serviceScaffold a Spring Boot 3.2 REST service 'orders-service' with JPA, PostgreSQL, Flyway, and Testcontainers.✓ Скопировано→ Proper project layout + pom/build.gradle + baseline migrations
-
Add a featureAdd an /orders endpoint with POST/GET and validation.✓ Скопировано→ Controller + service + repository + validation
-
Integration testsAdd integration tests using Testcontainers PostgreSQL.✓ Скопировано→ Tests boot a container, hit endpoints, pass
Итог: A running Boot service with tests.
Подводные камни
- Claude defaults to field injection — Skill prompts constructor injection; if not, re-ask explicitly