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