@@ -59,8 +59,9 @@ includes a number of built-in endpoints and you can also add your own. For examp
59
59
`health` endpoint provides basic application health information.
60
60
61
61
The way that endpoints are exposed will depend on the type of technology that you choose.
62
- Most applications choose HTTP monitoring, where the ID of the endpoint is mapped
63
- to a URL. For example, by default, the `health` endpoint will be mapped to `/health`.
62
+ Most applications choose HTTP monitoring, where the ID of the endpoint along with a prefix of
63
+ `/application` is mapped to a URL. For example, by default, the `health` endpoint will be mapped
64
+ to `/application/health`.
64
65
65
66
The following technology agnostic endpoints are available:
66
67
@@ -216,13 +217,13 @@ http://projects.spring.io/spring-hateoas[Spring HATEOAS] is on the classpath (e.
216
217
through the `spring-boot-starter-hateoas` or if you are using
217
218
http://projects.spring.io/spring-data-rest[Spring Data REST]) then the HTTP endpoints
218
219
from the Actuator are enhanced with hypermedia links, and a "`discovery page`" is added
219
- with links to all the endpoints. The "`discovery page`" is available on `/actuator ` by
220
+ with links to all the endpoints. The "`discovery page`" is available on `/application ` by
220
221
default. It is implemented as an endpoint, allowing properties to be used to configure
221
222
its path (`endpoints.actuator.path`) and whether or not it is enabled
222
223
(`endpoints.actuator.enabled`).
223
224
224
225
When a custom management context path is configured, the "`discovery page`" will
225
- automatically move from `/actuator ` to the root of the management context. For example,
226
+ automatically move from `/application ` to the root of the management context. For example,
226
227
if the management context path is `/management` then the discovery page will be available
227
228
from `/management`.
228
229
@@ -537,7 +538,8 @@ additional entry:
537
538
== Monitoring and management over HTTP
538
539
If you are developing a Spring MVC application, Spring Boot Actuator will auto-configure
539
540
all enabled endpoints to be exposed over HTTP. The default convention is to use the
540
- `id` of the endpoint as the URL path. For example, `health` is exposed as `/health`.
541
+ `id` of the endpoint with a prefix of `/application` as the URL path. For example, `health`
542
+ is exposed as `/application/health`.
541
543
542
544
543
545
@@ -587,23 +589,20 @@ in your `application.properties`:
587
589
588
590
[[production-ready-customizing-management-server-context-path]]
589
591
=== Customizing the management endpoint paths
590
- Sometimes it is useful to group all management endpoints under a single path. For example,
591
- your application might already use `/info ` for another purpose. You can use the
592
- `management.context-path` property to set a prefix for your management endpoint:
592
+ Sometimes it is useful to customize the prefix for the management endpoints.
593
+ For example, your application might already use `/application ` for another purpose.
594
+ You can use the `management.context-path` property to change the prefix for your management endpoint:
593
595
594
596
[source,properties,indent=0]
595
597
----
596
598
management.context-path=/manage
597
599
----
598
600
599
- The `application.properties` example above will change the endpoint from `/{id}` to
601
+ The `application.properties` example above will change the endpoint from `/application/ {id}` to
600
602
`/manage/{id}` (e.g. `/manage/info`).
601
603
602
- You can also change the "`id`" of an endpoint (using `endpoints.{name}.id`) which then
603
- changes the default resource path for the MVC endpoint. Legal endpoint ids are composed
604
- only of alphanumeric characters (because they can be exposed in a number of places,
605
- including JMX object names, where special characters are forbidden). The MVC path can be
606
- changed separately by configuring `endpoints.{name}.path`, and there is no validation on
604
+ You can also change the "`path`" of an endpoint (using `endpoints.{name}.path`) which then
605
+ changes the default resource path for the MVC endpoint. There is no validation on
607
606
those values (so you can use anything that is legal in a URL path). For example, to change
608
607
the location of the `/health` endpoint to `/ping/me` you can set
609
608
`endpoints.health.path=/ping/me`.
0 commit comments