Improve Your Developer Experience with Spring Boot Dev Services
summary
Spring Boot 3.1 auto-detects service dependencies and either generates or uses a Docker Compose file, runs docker compose up/down, and injects JDBC URL/username/password via a new ConnectionDetails abstraction so Hikari and other auto-configs just connect; Testcontainers integration adds @ServiceConnection for Testcontainers so tests and a test-only main can start containers without DynamicPropertySource; reuse and restart-scope options preserve state and cut startup to ~200ms for reused Postgres; works with Postgres, Redis, Kafka, Elasticsearch, Cassandra.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker intro
- 0:23Problem with local dependencies
- 2:08Existing solutions Docker and test containers
- 3:10Spring Boot 3.1 Docker Compose support
- 5:17Connection details abstraction explained
- 9:32Docker Compose behind the scenes
- 13:06Customizing Docker Compose behavior
- 16:37Test Containers support in Spring Boot 3.1
- 21:14Test main method for development
- 25:04Sharing container declarations
- 26:51Preserving state during development
- 28:55Summary of Spring Boot Dev Services
- 32:11Q&A session
related talks
48mTestcontainers and Spring Boot from integration tests to local development!
15mTestcontainers: Simplify Your Integration Tests and Development
58mBootiful IntelliJ IDEA
26mSimplify Your Dev Life with Testcontainers
51mMastering Testcontainers for better integration tests
32mMock my infrastructure! Using Testcontainers for better integration tests.
59mIntegration and end-to-end testing with TestContainers and JUnit 5
40mIntegration tests & testContainers
