Auto-configure a lifecycle processor with configurable timeout

Closes gh-21347
This commit is contained in:
Andy Wilkinson
2020-05-12 18:43:13 +01:00
parent 240898121f
commit 0bb687717c
6 changed files with 182 additions and 3 deletions

View File

@@ -3160,6 +3160,13 @@ To enable graceful shutdown, configure the configprop:server.shutdown[] property
server.shutdown=graceful
----
To configure the timeout period, configure the configprop:spring.lifecycle.timeout-per-shutdown-phase[] property, as shown in the following example:
[source,properties,indent=0,configprops]
----
spring.lifecycle.timeout-per-shutdown-phase=20s
----
[[boot-features-rsocket]]