Springboot for graceful shutdown

Source: Internet
Author: User

Recently, the Springboot project was used in the company, and it was found that the Java-jar command on Linux is very safe to run, but when we need to close it? Does the login server kill thread???

Found the relevant documents on the Internet: https://www.cnblogs.com/lobo/p/5657684.html This article explains in more detail two ways to close springboot projects.

However, after using the above method, it is found that there are some strange anomalies when the springboot is closed.

What about this???

Finally, in the Java explaining public number found an article: https://mp.weixin.qq.com/s/7qNB7mq-xaDBxxxHrCu0Wg

This article describes the logical shutdown process when using Tomcat and Undertow as a server .....

Springboot for graceful shutdown

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.