From a4254f7b3036b02b68aedaaa198e9691d2e54c1d Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Mon, 11 May 2020 18:14:05 -0700 Subject: [PATCH] Document that graceful shutdown requires Tomcat 9.0.33 Closes gh-20886 --- .../src/docs/asciidoc/spring-boot-features.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc index f184df1acc..c45ab8f1a6 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc @@ -3151,6 +3151,8 @@ The exact way in which new requests are not permitted varies depending on the we Jetty, Reactor Netty, and Tomcat will stop accepting requests at the network layer. Undertow will accept requests but respond immediately with a service unavailable (503) response. +NOTE: Graceful shutdown with Tomcat requires Tomcat 9.0.33 or later. + Graceful shutdown occurs as one of the first steps during application close processing and before any beans have been destroyed. This ensures that the beans are available for use by any processing that occurs while in-flight requests are being allowed to complete. To enable graceful shutdown, configure the configprop:server.shutdown.grace-period[] property, as shown in the following example: