Clarify loss of defaults when adding custom mapping
See gh-20716
This commit is contained in:
parent
4a0e8217f0
commit
9f009e4445
|
|
@ -760,6 +760,9 @@ For example, the following property maps `FATAL` to 503 (service unavailable):
|
|||
management.endpoint.health.status.http-mapping.fatal=503
|
||||
----
|
||||
|
||||
WARNING: A custom status mapping replaces whole of the default status mappings.
|
||||
That means the above example has only one mapping to `FATAL` and any other statuses will return the http status 200 as `UNKNOWN` health status.
|
||||
|
||||
TIP: If you need more control, you can define your own `HttpCodeStatusMapper` bean.
|
||||
|
||||
The following table shows the default status mappings for the built-in statuses:
|
||||
|
|
|
|||
Loading…
Reference in New Issue