registerShutdownHook

open fun registerShutdownHook(registerShutdownHook: Boolean): SpringApplicationBuilder

Sets if the created ApplicationContext should have a shutdown hook registered.

Return

the current builder

Parameters

registerShutdownHook

if the shutdown hook should be registered