# 313 Frameworks Spring Boot Local Testing

> Use when you need to configure local testing with spring-boot-docker-compose — including dependency setup, compose service definitions, profiles, integration test setup, service connections, health checks, test data, and performance optimization. Part of the skills-for-java project

- Skill: `majiayu000/313-frameworks-spring-boot-local-testing` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/313-frameworks-spring-boot-local-testing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/313-frameworks-spring-boot-local-testing/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- License: Apache-2.0
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/313-frameworks-spring-boot-local-testing

---

# Spring Boot Local Testing with Docker Compose

Apply Spring Boot local testing guidelines with Docker Compose.

**What is covered in this Skill?**

- spring-boot-docker-compose dependency
- Docker Compose service definitions
- Application profile configuration
- Integration test setup
- Service connection management
- Health checks, test data, performance

**Scope:** Apply recommendations based on the reference rules and good/bad code examples.

## Constraints

Before applying any configuration changes, ensure the project compiles. If compilation fails, stop immediately. After applying improvements, run full verification.

- **MANDATORY**: Run `./mvnw compile` or `mvn compile` before applying any change
- **SAFETY**: If compilation fails, stop immediately
- **VERIFY**: Run `./mvnw clean verify` or `mvn clean verify` after applying improvements
- **BEFORE APPLYING**: Read the reference for detailed rules and good/bad patterns

## Reference

For detailed guidance, examples, and constraints, see [references/313-frameworks-spring-boot-local-testing.md](references/313-frameworks-spring-boot-local-testing.md).

