You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/docs/asciidoc/endpoints/startup.adoc
+19-7Lines changed: 19 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,38 @@
4
4
The `startup` endpoint provides information about the application's startup sequence.
5
5
6
6
7
-
8
7
[[startup-retrieving]]
9
8
== Retrieving the Application Startup steps
10
9
11
-
To retrieve the steps recorded so far during the application startup phase , make a `POST` request to `/actuator/startup`, as shown in the following curl-based example:
10
+
The application startup steps can either be retrieved as a snapshot (`GET`) or drained from the buffer (`POST`).
11
+
12
+
[[startup-retrieving-snapshot]]
13
+
=== Retrieving a snapshot of the Application Startup steps
14
+
15
+
To retrieve the steps recorded so far during the application startup phase , make a `GET` request to `/actuator/startup`, as shown in the following curl-based example:
To drain and return the steps recorded so far during the application startup phase , make a `POST` request to `/actuator/startup`, as shown in the following curl-based example:
12
28
13
29
include::{snippets}/startup/curl-request.adoc[]
14
30
15
31
The resulting response is similar to the following:
16
32
17
33
include::{snippets}/startup/http-response.adoc[]
18
34
19
-
NOTE: The above call resets the application startup steps buffer - subsequent calls to the endpoint will
20
-
not include the returned steps. To retrieve a snapshot of the steps recorded so far without removing them
21
-
from the startup buffer, make a `GET` request to `/actuator/startup`.
22
-
23
35
[[startup-retrieving-response-structure]]
24
36
=== Response Structure
25
37
26
-
The response contains details of the application startup steps recorded so far by the application.
38
+
The response contains details of the application startup steps.
27
39
The following table describes the structure of the response:
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/StartupEndpointDocumentationTests.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/startup/StartupEndpoint.java
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2020 the original author or authors.
2
+
* Copyright 2012-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -46,18 +46,18 @@ public StartupEndpoint(BufferingApplicationStartup applicationStartup) {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/startup/StartupEndpointTests.java
+22-17Lines changed: 22 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2020 the original author or authors.
2
+
* Copyright 2012-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments