Testing
@SpringBootTest loads a full, real ApplicationContext (by default, the entire application's configuration) for integration testing — wiring up all beans, auto-configuration, and (optionally, via `webEnvironment`) a real or mock embedded server. It's appropriate for genuine end-to-end integration tests verifying multiple layers work together correctly, but it's comparatively slow to start, so it should be used deliberately rather than as the default choice for every test.
Intermediate5 min
