シャットダウン (shutdown
)
shutdown
エンドポイントは、アプリケーションをシャットダウンするために使用されます。
アプリケーションのシャットダウン
アプリケーションをシャットダウンするには、次の curl ベースの例に示すように、POST
を /actuator/shutdown
にリクエストします。
$ curl 'http://localhost: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..."
}