Annotation Type ServletEndpoint
@Target(TYPE) @Retention(RUNTIME) @Documented @Endpoint @FilteredEndpoint(org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointFilter.class) public @interface ServletEndpoint
Identifies a type as being an endpoint that supplies a servlet to expose. Implementations must also implementSupplier<EndpointServlet>
and return a validEndpointServlet
.This annotation can be used when existing servlets need to be exposed as actuator endpoints, but it is at the expense of portability. Most users should prefer the
@Endpoint
or@WebEndpoint
annotations whenever possible.- Since:
- 2.0.0
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
enableByDefault
If the endpoint should be enabled or disabled by default.
Element Detail
id
@AliasFor(annotation=Endpoint.class) String id
The id of the endpoint.- Returns:
- the id
enableByDefault
@AliasFor(annotation=Endpoint.class) boolean enableByDefault
If the endpoint should be enabled or disabled by default.- Returns:
true
if the endpoint is enabled by default
- Default:
- true