oh, i see standalone tomcat shutdown by receive shutdown command from shutdown port after everything prepared, then do real shutdown action, so our shutdown hook will not be invoked.
2018-05-26 14:34 GMT+08:00 wjm wjm <zzz...@gmail.com>: > our shutdown hook works good in standalone mode > but when package as a war to run with tomcat, shutdown hook will not be > invoked, must invoke manually by subscribe spring ContextClosedEvent > > anybody know what's happened? > > > >