TIP: See {sc-spring-boot-actuator-autoconfigure}/endpoint/web/servlet/CorsEndpointProperties.{sc-ext}[CorsEndpointProperties]
TIP: See {sc-spring-boot-actuator-autoconfigure}/endpoint/web/servlet/CorsEndpointProperties.{sc-ext}[CorsEndpointProperties] for a complete list of options.
for a complete list of options.
...
@@ -272,20 +270,20 @@ If you add a `@Bean` annotated with `@Endpoint`, any methods annotated with
...
@@ -272,20 +270,20 @@ If you add a `@Bean` annotated with `@Endpoint`, any methods annotated with
`@ReadOperation` or `@WriteOperation` are automatically exposed over JMX and, in a web
`@ReadOperation` or `@WriteOperation` are automatically exposed over JMX and, in a web
application, over HTTP as well.
application, over HTTP as well.
TIP: If you do this as a library feature, consider adding a configuration class
TIP: If you do this as a library feature, consider adding a configuration class annotated
annotated with `@ManagementContextConfiguration` to `/META-INF/spring.factories` under the
with `@ManagementContextConfiguration` to `/META-INF/spring.factories` under the key,
key, `org.springframework.boot.actuate.autoconfigure.ManagementContextConfiguration`. If
`org.springframework.boot.actuate.autoconfigure.ManagementContextConfiguration`. If you do
you do so and if your users ask for a separate management port or address, the endpoint
so and if your users ask for a separate management port or address, the endpoint moves to
moves to a child context with all the other web endpoints.
a child context with all the other web endpoints.
[[production-ready-health]]
[[production-ready-health]]
=== Health Information
=== Health Information
You can use health information to check the status of your running application. It is
You can use health information to check the status of your running application. It is
often used by monitoring software to alert someone when a production system goes down.
often used by monitoring software to alert someone when a production system goes down. The
The default information exposed by the `health` endpoint depends on how it is accessed.
default information exposed by the `health` endpoint depends on how it is accessed. For an
For an unauthenticated connection in a secure application, a simple '`status`' message is
unauthenticated connection in a secure application, a simple '`status`' message is
returned. For an authenticated connection, additional details are also displayed. (See
returned. For an authenticated connection, additional details are also displayed. (See
<<production-ready-health-access-restrictions>> for HTTP details.)
<<production-ready-health-access-restrictions>> for HTTP details.)
...
@@ -376,11 +374,11 @@ NOTE: The identifier for a given `HealthIndicator` is the name of the bean witho
...
@@ -376,11 +374,11 @@ NOTE: The identifier for a given `HealthIndicator` is the name of the bean witho
is available in an entry named `my`.
is available in an entry named `my`.
In addition to Spring Boot's predefined {sc-spring-boot-actuator}/health/Status.{sc-ext}[`Status`]
In addition to Spring Boot's predefined {sc-spring-boot-actuator}/health/Status.{sc-ext}[`Status`]
types, it is also possible for `Health` to return a custom `Status` that represents a
types, it is also possible for `Health` to return a custom `Status` that represents a new
new system state. In such cases, a custom implementation of the
system state. In such cases, a custom implementation of the