Skip to content

Commit a4254f7

Browse files
committed
Document that graceful shutdown requires Tomcat 9.0.33
Closes gh-20886
1 parent 158933c commit a4254f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3151,6 +3151,8 @@ The exact way in which new requests are not permitted varies depending on the we
31513151
Jetty, Reactor Netty, and Tomcat will stop accepting requests at the network layer.
31523152
Undertow will accept requests but respond immediately with a service unavailable (503) response.
31533153

3154+
NOTE: Graceful shutdown with Tomcat requires Tomcat 9.0.33 or later.
3155+
31543156
Graceful shutdown occurs as one of the first steps during application close processing and before any beans have been destroyed.
31553157
This ensures that the beans are available for use by any processing that occurs while in-flight requests are being allowed to complete.
31563158
To enable graceful shutdown, configure the configprop:server.shutdown.grace-period[] property, as shown in the following example:

0 commit comments

Comments
 (0)