Claude Code Spring Boot Testing for MVC and JPA Slices
Separate controller serialization and validation from repository behavior. Choose a web slice, data slice, or full integration test based on what needs proof.
中文Install in Claude Code
Use Claude Code with the complete pinned skill and a compatible Spring Boot test project. Keep the slice-test references and dependency guidance.
- Get the complete `plugins/spring-boot/skills/spring-boot-testing` directory from the pinned GitHub checkout.
- Copy it under the target project's `.claude/skills/`. Confirm `.claude/skills/spring-boot-testing/SKILL.md`, open Claude Code at the project root, and call `/spring-boot-testing`.
Example task
A fictional library service omits a date from its JSON list and filters overdue loans incorrectly in the database. Choose a focused test for each issue.What to check
Use the MVC slice to check the response field and the JPA slice to check the query. Give each test only the data and context it needs.
Original SKILL.md on GitHub · Updated
Frequently asked question
Does a JSON response change always require the full application?
Start with an MVC slice for controller behavior, serialization, or validation. Use integration testing when cooperation across layers needs verification.