Enabling Endpoints
By default, all endpoints except for shutdown are enabled.
To configure the enablement of an endpoint, use its management.endpoint.<id>.enabled property.
The following example enables the shutdown endpoint:
- 
Properties 
- 
YAML 
management.endpoint.shutdown.enabled=truemanagement:
  endpoint:
    shutdown:
      enabled: trueIf you prefer endpoint enablement to be opt-in rather than opt-out, set the management.endpoints.enabled-by-default property to false and use individual endpoint enabled properties to opt back in.
The following example enables the info endpoint and disables all other endpoints:
- 
Properties 
- 
YAML 
management.endpoints.enabled-by-default=false
management.endpoint.info.enabled=truemanagement:
  endpoints:
    enabled-by-default: false
  endpoint:
    info:
      enabled: true| Disabled endpoints are removed entirely from the application context.
If you want to change only the technologies over which an endpoint is exposed, use the includeandexcludeproperties instead. |