Production Spring Boot
Configuration, logging, health, metrics, tracing, testing and graceful shutdown.
Production readiness is the final stage of the Spring Boot Developer learning path.
Articles
- Unit testing (JUnit, Mockito)Fast, focused tests for Java and Spring code: the testing pyramid, JUnit Jupiter (JUnit 5 and 6) lifecycle, assertions with AssertJ, parameterized and nested tests, Mockito mocks, stubs, spies, verification and argument captors, BDD style, testing without Spring, test doubles vs fakes, and what makes a good unit test.
- Integration testingTesting Spring applications with real infrastructure: @SpringBootTest and web environments, test slices (@WebMvcTest, @DataJpaTest, @JsonTest, @RestClientTest), MockMvc and RestTestClient/WebTestClient, @MockitoBean, Testcontainers with @ServiceConnection, reusable containers and dev-time services, context caching, contract tests, and a practical test strategy.
Planned topics
These topics are on the roadmap and not written yet. They appear here so you can see the full scope of the section.
- Logging
- Graceful shutdown
- Performance considerations