Relative Content

Tag Archive for spring-bootintegration-testingjunit5spring-boot-testapplication-shutdown

How to gracefully shutdown Spring boot app, after JUnit 5 integration test

How can I gracefully shut down a Spring Boot application after an integration test when @SpringBootTest does not properly terminate the application?

I’m running integration tests for a Spring Boot application. After the tests finish, the application does not automatically shut down when using the @SpringBootTest annotation, and I have to manually kill the process.