跳到主要内容

关机 (shutdown)

DeepSeek V3 中英对照 Shutdown (shutdown) Shutdown (shutdown)

shutdown 端点用于关闭应用程序。

关闭应用程序

要关闭应用程序,请向 /actuator/shutdown 发送一个 POST 请求,如下面的基于 curl 的示例所示:

$ curl 'http://localhost:8080/actuator/shutdown' -i -X POST
bash

生成类似于以下的响应:

HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 41

{
"message" : "Shutting down, bye..."
}
http

响应结构

响应包含了关机请求结果的详细信息。下表描述了响应的结构:

路径类型描述
messageString描述请求结果的消息。