简体   繁体   English

重新启动 java 时正在进行的作业会发生什么

[英]What happens for in-progress job when do restart java

When the java app in the middle of the service process restarts, waits for the process and after finishing that continued or does abort the process.当服务进程中间的 java 应用程序重新启动时,等待进程并在完成后继续或中止进程。

Depends on which process we are talking about, in-flight http requests are killed, but this behaviour can be configured, see https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#web.graceful-shutdown .取决于我们在谈论哪个进程,进行中的 http 请求被杀死,但是可以配置此行为,请参阅https://docs.Z2A2D595E6ED9A0B24F027iosF2B63//bootweb/docs.currentreference/#html。优雅关机

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM