Spring Boot Rest API 執行器 關機 (shutdown) 關機 (shutdown) shutdown 端點用於關閉應用程式。 關閉應用程式 要關閉應用程式,請向 /actuator/shutdown 傳送 POST 請求,如以下基於 curl 的示例所示 $ curl 'https://:8080/actuator/shutdown' -i -X POST 將生成類似於以下內容的響應 HTTP/1.1 200 OK Content-Type: application/vnd.spring-boot.actuator.v3+json Content-Length: 41 { "message" : "Shutting down, bye..." } 響應結構 響應包含關機請求結果的詳細資訊。下表描述了響應的結構 路徑 型別 描述 訊息 字串 描述請求結果的訊息。 會話 (sessions) 應用程式啟動 (startup)