Skip to content

Commit 07f71e8

Browse files
committed
Move /application to /actuator
Change the endpoint default path from `/application` to `/actuator`. Fixes spring-projectsgh-10970
1 parent 3e2ede5 commit 07f71e8

File tree

82 files changed

+203
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+203
-211
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/auditevents.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `auditevents` endpoint provides information about the application's audit ev
88
[[audit-events-retrieving]]
99
== Retrieving Audit Events
1010

11-
To retrieve the audit events, make a `GET` request to `/application/auditevents`, as shown
11+
To retrieve the audit events, make a `GET` request to `/actuator/auditevents`, as shown
1212
in the following curl-based example:
1313

1414
include::{snippets}auditevents/filtered/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/beans.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `beans` endpoint provides information about the application's beans.
88
[[beans-retrieving]]
99
== Retrieving the Beans
1010

11-
To retrieve the beans, make a `GET` request to `/application/beans`, as shown in the
11+
To retrieve the beans, make a `GET` request to `/actuator/beans`, as shown in the
1212
following curl-based example:
1313

1414
include::{snippets}beans/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/conditions.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ configuration and auto-configuration classes.
99
[[conditions-retrieving]]
1010
== Retrieving the Report
1111

12-
To retrieve the report, make a `GET` request to `/application/conditions`, as shown in
12+
To retrieve the report, make a `GET` request to `/actuator/conditions`, as shown in
1313
the following curl-based example:
1414

1515
include::{snippets}conditions/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/configprops.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The `configprops` endpoint provides information about the application's
1010
== Retrieving the `@ConfigurationProperties` Bean
1111

1212
To retrieve the `@ConfigurationProperties` beans, make a `GET` request to
13-
`/application/configprops`, as shown in the following curl-based example:
13+
`/actuator/configprops`, as shown in the following curl-based example:
1414

1515
include::{snippets}configprops/curl-request.adoc[]
1616

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/env.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `env` endpoint provides information about the application's `Environment`.
88
[[env-entire]]
99
== Retrieving the Entire Environment
1010

11-
To retrieve the entire environment, make a `GET` request to `/application/env`, as shown in
11+
To retrieve the entire environment, make a `GET` request to `/actuator/env`, as shown in
1212
the following curl-based example:
1313

1414
include::{snippets}env/all/curl-request.adoc[]
@@ -33,7 +33,7 @@ include::{snippets}env/all/response-fields.adoc[]
3333
[[env-single-property]]
3434
== Retrieving a Single Property
3535

36-
To retrieve a single property, make a `GET` request to `/application/env/{property.name}`,
36+
To retrieve a single property, make a `GET` request to `/actuator/env/{property.name}`,
3737
as shown in the following curl-based example:
3838

3939
include::{snippets}env/single/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/flyway.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `flyway` endpoint provides information about database migrations performed b
88
[[flyway-retrieving]]
99
== Retrieving the Migrations
1010

11-
To retrieve the migrations, make a `GET` request to `/application/flyway`, as shown in the
11+
To retrieve the migrations, make a `GET` request to `/actuator/flyway`, as shown in the
1212
following curl-based example:
1313

1414
include::{snippets}flyway/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/health.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `health` endpoint provides detailed information about the health of the appl
88
[[health-retrieving]]
99
== Retrieving the Health
1010

11-
To retrieve the health of the application, make a `GET` request to `/application/health`,
11+
To retrieve the health of the application, make a `GET` request to `/actuator/health`,
1212
as shown in the following curl-based example:
1313

1414
include::{snippets}health/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/heapdump.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `heapdump` endpoint provides a heap dump from the application's JVM.
88
[[heapdump-retrieving]]
99
== Retrieving the Heap Dump
1010

11-
To retrieve the heap dump, make a `GET` request to `/application/heapdump`. The response
11+
To retrieve the heap dump, make a `GET` request to `/actuator/heapdump`. The response
1212
is binary data in https://docs.oracle.com/javase/8/docs/technotes/samples/hprof.html[
1313
HPROF] format and can be large. Typically, you should save the response to disk for
1414
subsequent analysis. When using curl, this can be achieved by using the `-O` option,

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/info.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The `info` endpoint provides general information about the application.
99
== Retrieving the Info
1010

1111
To retrieve the information about the application, make a `GET` request to
12-
`/application/info`, as shown in the following curl-based example:
12+
`/actuator/info`, as shown in the following curl-based example:
1313

1414
include::{snippets}info/curl-request.adoc[]
1515

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/liquibase.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Liquibase.
99
[[liquibase-retrieving]]
1010
== Retrieving the Changes
1111

12-
To retrieve the changes, make a `GET` request to `/application/liquibase`, as shown in the
12+
To retrieve the changes, make a `GET` request to `/actuator/liquibase`, as shown in the
1313
following curl-based example:
1414

1515
include::{snippets}liquibase/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/logfile.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `logfile` endpoint provides access to the contents of the application's log
88
[[logfile-retrieving]]
99
== Retrieving the Log File
1010

11-
To retrieve the log file, make a `GET` request to `/application/logfile`, as shown in the
11+
To retrieve the log file, make a `GET` request to `/actuator/logfile`, as shown in the
1212
following curl-based example:
1313

1414
include::{snippets}logfile/entire/curl-request.adoc[]
@@ -24,7 +24,7 @@ include::{snippets}logfile/entire/http-response.adoc[]
2424

2525
NOTE: Retrieving part of the log file is not supported when using Jersey.
2626

27-
To retrieve part of the log file, make a `GET` request to `/application/logfile` by using
27+
To retrieve part of the log file, make a `GET` request to `/actuator/logfile` by using
2828
the `Range` header, as shown in the following curl-based example:
2929

3030
include::{snippets}logfile/range/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/loggers.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ of their levels.
99
[[loggers-all]]
1010
== Retrieving All Loggers
1111

12-
To retrieve the application's loggers, make a `GET` request to `/application/loggers`, as
12+
To retrieve the application's loggers, make a `GET` request to `/actuator/loggers`, as
1313
shown in the following curl-based example:
1414

1515
include::{snippets}loggers/all/curl-request.adoc[]
@@ -34,7 +34,7 @@ include::{snippets}loggers/all/response-fields.adoc[]
3434
[[loggers-single]]
3535
== Retrieving a Single Logger
3636

37-
To retrieve a single logger, make a `GET` request to `/application/loggers/{logger.name}`,
37+
To retrieve a single logger, make a `GET` request to `/actuator/loggers/{logger.name}`,
3838
as shown in the following curl-based example:
3939

4040
include::{snippets}loggers/single/curl-request.adoc[]
@@ -61,7 +61,7 @@ include::{snippets}loggers/single/response-fields.adoc[]
6161
== Setting a Log Level
6262

6363
To set the level of a logger, make a `POST` request to
64-
`/application/loggers/{logger.name}` with a JSON body that specifies the configured level
64+
`/actuator/loggers/{logger.name}` with a JSON body that specifies the configured level
6565
for the logger, as shown in the following curl-based example:
6666

6767
include::{snippets}loggers/set/curl-request.adoc[]
@@ -85,7 +85,7 @@ include::{snippets}loggers/set/request-fields.adoc[]
8585
== Clearing a Log Level
8686

8787
To clear the level of a logger, make a `POST` request to
88-
`/application/loggers/{logger.name}` with a JSON body containing an empty object, as shown
88+
`/actuator/loggers/{logger.name}` with a JSON body containing an empty object, as shown
8989
in the following curl-based example:
9090

9191
include::{snippets}loggers/clear/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/metrics.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The `metrics` endpoint provides access to application metrics.
99
== Retrieving Metric Names
1010

1111
To retrieve the names of the available metrics, make a `GET` request to
12-
`/application/metrics`, as shown in the following curl-based example:
12+
`/actuator/metrics`, as shown in the following curl-based example:
1313

1414
include::{snippets}metrics/names/curl-request.adoc[]
1515

@@ -33,7 +33,7 @@ include::{snippets}metrics/names/response-fields.adoc[]
3333
[[metrics-retrieving-metric]]
3434
== Retrieving a Metric
3535

36-
To retrieve a metric, make a `GET` request to `/application/metrics/{metric.name}`, as
36+
To retrieve a metric, make a `GET` request to `/actuator/metrics/{metric.name}`, as
3737
shown in the following curl-based example:
3838

3939
include::{snippets}metrics/metric/curl-request.adoc[]
@@ -68,7 +68,7 @@ include::{snippets}metrics/metric/response-fields.adoc[]
6868
[[metrics-drilling-down]]
6969
== Drilling Down
7070

71-
To drill down into a metric, make a `GET` request to `/application/metrics/{metric.name}`
71+
To drill down into a metric, make a `GET` request to `/actuator/metrics/{metric.name}`
7272
using the `tag` query parameter, as shown in the following curl-based example:
7373

7474
include::{snippets}metrics/metric-with-tags/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/prometheus.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ required for scraping by a Prometheus server.
99
[[prometheus-retrieving]]
1010
== Retrieving the Metrics
1111

12-
To retrieve the metrics, make a `GET` request to `/application/prometheus`, as shown in
12+
To retrieve the metrics, make a `GET` request to `/actuator/prometheus`, as shown in
1313
the following curl-based example:
1414

1515
include::{snippets}prometheus/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/scheduledtasks.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tasks.
99
[[scheduled-tasks-retrieving]]
1010
== Retrieving the Scheduled Tasks
1111

12-
To retrieve the scheduled tasks, make a `GET` request to `/application/scheduledtasks`,
12+
To retrieve the scheduled tasks, make a `GET` request to `/actuator/scheduledtasks`,
1313
as shown in the following curl-based example:
1414

1515
include::{snippets}scheduled-tasks/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/sessions.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ are managed by Spring Session.
99
[[sessions-retrieving]]
1010
== Retrieving Sessions
1111

12-
To retrieve the sessions, make a `GET` request to `/application/sessions`, as shown in the
12+
To retrieve the sessions, make a `GET` request to `/actuator/sessions`, as shown in the
1313
following curl-based example:
1414

1515
include::{snippets}sessions/username/curl-request.adoc[]
@@ -48,7 +48,7 @@ include::{snippets}sessions/username/response-fields.adoc[]
4848
[[sessions-retrieving-id]]
4949
== Retrieving a Single Session
5050

51-
To retrieve a single session, make a `GET` request to `/application/sessions/{id}`, as
51+
To retrieve a single session, make a `GET` request to `/actuator/sessions/{id}`, as
5252
shown in the following curl-based example:
5353

5454
include::{snippets}sessions/id/curl-request.adoc[]
@@ -75,7 +75,7 @@ include::{snippets}sessions/id/response-fields.adoc[]
7575
[[sessions-deleting]]
7676
== Deleting a Session
7777

78-
To delete a session, make a `DELETE` request to `/application/sessions/{id}`, as shown in
78+
To delete a session, make a `DELETE` request to `/actuator/sessions/{id}`, as shown in
7979
the following curl-based example:
8080

8181
include::{snippets}sessions/delete/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/shutdown.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `shutdown` endpoint is used to shut down the application.
88
[[shutdown-shutting-down]]
99
== Shutting Down the Application
1010

11-
To shut down the application, make a `POST` request to `/application/shutdown`, as shown
11+
To shut down the application, make a `POST` request to `/actuator/shutdown`, as shown
1212
in the following curl-based example:
1313

1414
include::{snippets}shutdown/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/endpoints/threaddump.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `threaddump` endpoint provides a thread dump from the application's JVM.
88
[[threaddump-retrieving]]
99
== Retrieving the Thread Dump
1010

11-
To retrieve the thread dump, make a `GET` request to `/application/threaddump`, as shown
11+
To retrieve the thread dump, make a `GET` request to `/actuator/threaddump`, as shown
1212
in the following curl-based example:
1313

1414
include::{snippets}threaddump/curl-request.adoc[]

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/asciidoc/index.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Before you proceed, you should read the following topics:
2525
[[overview-endpoint-urls]]
2626
=== URLs
2727

28-
By default, all web endpoints are available beneath the path `/application` with URLs of
29-
the form `/application/{id}`. The `/application` base path can be configured by using the
28+
By default, all web endpoints are available beneath the path `/actuator` with URLs of
29+
the form `/actuator/{id}`. The `/actuator` base path can be configured by using the
3030
`management.endpoints.web.base-path` property, as shown in the following example:
3131

3232
[source,properties,indent=0]
@@ -35,7 +35,7 @@ the form `/application/{id}`. The `/application` base path can be configured by
3535
----
3636

3737
The preceding `application.properties` example changes the form of the endpoint URLs from
38-
`/application/{id}` to `/manage/{id}`. For example, the URL `info` endpoint would become
38+
`/actuator/{id}` to `/manage/{id}`. For example, the URL `info` endpoint would become
3939
`/manage/info`.
4040

4141

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/WebEndpointProperties.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class WebEndpointProperties {
3838
* Base path for Web endpoints. Relative to server.context-path or
3939
* management.server.context-path if management.server.port is configured.
4040
*/
41-
private String basePath = "/application";
41+
private String basePath = "/actuator";
4242

4343
/**
4444
* Endpoint IDs that should be exposed or '*' for all.

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/DefaultEndpointPathProviderTests.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ public void getPathsShouldReturnAllPaths() throws Exception {
5656
@Test
5757
public void getPathsWhenHasContextPathShouldReturnAllPathsWithContext()
5858
throws Exception {
59-
DefaultEndpointPathProvider provider = createProvider("/application");
60-
assertThat(provider.getPaths()).containsOnly("/application/foo",
61-
"/application/bar");
59+
DefaultEndpointPathProvider provider = createProvider("/actuator");
60+
assertThat(provider.getPaths()).containsOnly("/actuator/foo", "/actuator/bar");
6261
}
6362

6463
@Test
@@ -75,8 +74,8 @@ public void getPathWhenEndpointIdIsUnknownShouldReturnNull() throws Exception {
7574

7675
@Test
7776
public void getPathWhenHasContextPathReturnPath() throws Exception {
78-
DefaultEndpointPathProvider provider = createProvider("/application");
79-
assertThat(provider.getPath("foo")).isEqualTo("/application/foo");
77+
DefaultEndpointPathProvider provider = createProvider("/actuator");
78+
assertThat(provider.getPath("foo")).isEqualTo("/actuator/foo");
8079
}
8180

8281
private DefaultEndpointPathProvider createProvider(String contextPath) {

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/WebEndpointPropertiesTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class WebEndpointPropertiesTests {
3030
@Test
3131
public void defaultBasePathShouldBeApplication() throws Exception {
3232
WebEndpointProperties properties = new WebEndpointProperties();
33-
assertThat(properties.getBasePath()).isEqualTo("/application");
33+
assertThat(properties.getBasePath()).isEqualTo("/actuator");
3434
}
3535

3636
@Test

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/AuditEventsEndpointDocumentationTests.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ public void allAuditEventsAfter() throws Exception {
6060
String queryTimestamp = "2017-11-07T09:37Z";
6161
given(this.repository.find(any(), any(), any())).willReturn(
6262
Arrays.asList(new AuditEvent("alice", "logout", Collections.emptyMap())));
63-
this.mockMvc
64-
.perform(get("/application/auditevents").param("after", queryTimestamp))
63+
this.mockMvc.perform(get("/actuator/auditevents").param("after", queryTimestamp))
6564
.andExpect(status().isOk())
6665
.andDo(document("auditevents/after", responseFields(
6766
fieldWithPath("events").description("An array of audit events."),
@@ -81,7 +80,7 @@ public void filteredAuditEvents() throws Exception {
8180
given(this.repository.find("alice", date, "logout")).willReturn(
8281
Arrays.asList(new AuditEvent("alice", "logout", Collections.emptyMap())));
8382
this.mockMvc
84-
.perform(get("/application/auditevents").param("principal", "alice")
83+
.perform(get("/actuator/auditevents").param("principal", "alice")
8584
.param("after", queryTimestamp).param("type", "logout"))
8685
.andExpect(status().isOk())
8786
.andDo(document("auditevents/filtered",

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/BeansEndpointDocumentationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void beans() throws Exception {
6969
.description("Beans in the parent application "
7070
+ "context, if any.")
7171
.type(JsonFieldType.OBJECT).optional());
72-
this.mockMvc.perform(get("/application/beans")).andExpect(status().isOk())
72+
this.mockMvc.perform(get("/actuator/beans")).andExpect(status().isOk())
7373
.andDo(document("beans",
7474
preprocessResponse(limit("beans", this::isIndependentBean)),
7575
responseFields));

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/ConditionsReportEndpointDocumentationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void before() {
7070

7171
@Test
7272
public void conditions() throws Exception {
73-
this.mockMvc.perform(get("/application/conditions")).andExpect(status().isOk())
73+
this.mockMvc.perform(get("/actuator/conditions")).andExpect(status().isOk())
7474
.andDo(MockMvcRestDocumentation.document("conditions",
7575
preprocessResponse(limit("positiveMatches"),
7676
limit("negativeMatches")),

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/ConfigurationPropertiesReportEndpointDocumentationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class ConfigurationPropertiesReportEndpointDocumentationTests
4343

4444
@Test
4545
public void configProps() throws Exception {
46-
this.mockMvc.perform(get("/application/configprops")).andExpect(status().isOk())
46+
this.mockMvc.perform(get("/actuator/configprops")).andExpect(status().isOk())
4747
.andDo(MockMvcRestDocumentation.document("configprops",
4848
preprocessResponse(limit("beans")),
4949
responseFields(

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/EnvironmentEndpointDocumentationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class EnvironmentEndpointDocumentationTests
7171

7272
@Test
7373
public void env() throws Exception {
74-
this.mockMvc.perform(get("/application/env")).andExpect(status().isOk())
74+
this.mockMvc.perform(get("/actuator/env")).andExpect(status().isOk())
7575
.andDo(document("env/all",
7676
preprocessResponse(replacePattern(
7777
Pattern.compile(
@@ -91,7 +91,7 @@ public void env() throws Exception {
9191

9292
@Test
9393
public void singlePropertyFromEnv() throws Exception {
94-
this.mockMvc.perform(get("/application/env/com.example.cache.max-size"))
94+
this.mockMvc.perform(get("/actuator/env/com.example.cache.max-size"))
9595
.andExpect(status().isOk())
9696
.andDo(document("env/single",
9797
preprocessResponse(replacePattern(

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/FlywayEndpointDocumentationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class FlywayEndpointDocumentationTests extends AbstractEndpointDocumentat
5050

5151
@Test
5252
public void flyway() throws Exception {
53-
this.mockMvc.perform(get("/application/flyway")).andExpect(status().isOk())
53+
this.mockMvc.perform(get("/actuator/flyway")).andExpect(status().isOk())
5454
.andDo(MockMvcRestDocumentation.document("flyway",
5555
responseFields(fieldWithPath("*.migrations").description(
5656
"Migrations performed by the Flyway instance, keyed by"

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/HealthEndpointDocumentationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class HealthEndpointDocumentationTests extends AbstractEndpointDocumentat
5151

5252
@Test
5353
public void health() throws Exception {
54-
this.mockMvc.perform(get("/application/health")).andExpect(status().isOk())
54+
this.mockMvc.perform(get("/actuator/health")).andExpect(status().isOk())
5555
.andDo(document("health",
5656
responseFields(
5757
fieldWithPath("status").description(

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/HeapDumpWebEndpointDocumentationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class HeapDumpWebEndpointDocumentationTests
4444

4545
@Test
4646
public void heapDump() throws Exception {
47-
this.mockMvc.perform(get("/application/heapdump")).andExpect(status().isOk())
47+
this.mockMvc.perform(get("/actuator/heapdump")).andExpect(status().isOk())
4848
.andDo(document("heapdump",
4949
new CurlRequestSnippet(CliDocumentation.multiLineFormat()) {
5050

0 commit comments

Comments
 (0)