政采云技术
Feb 16, 2023 · Backend Development
Graceful Shutdown Support in Spring Boot 2.3+ for Embedded Web Servers
Since Spring Boot 2.3.0.RELEASE, graceful shutdown is supported for all embedded web servers (Jetty, Reactor Netty, Tomcat, Undertow) and both reactive and servlet‑based applications, using SmartLifecycle beans, configurable timeouts, and a JVM shutdown hook to allow in‑flight requests to finish while refusing new ones.
BackendEmbeddedWebServerGracefulShutdown
0 likes · 10 min read