转自:
https://www.jianshu.com/p/82fb442480c3
https://www.cnblogs.com/shihaiming/p/11408684.html
springboot 优雅关闭服务
https://www.cnblogs.com/admol/p/12910535.html