Annotation Type ControllerEndpoint
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Endpoint
@FilteredEndpoint(org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointFilter.class)
public @interface ControllerEndpoint
Identifies a type as being an endpoint that is only exposed over Spring MVC or Spring
WebFlux. Mapped methods must be annotated with
@GetMapping
,
@PostMapping
, @DeleteMapping
, etc.
annotations rather than @ReadOperation
,
@WriteOperation
, @DeleteOperation
.
This annotation can be used when deeper Spring integration is required, but at the
expense of portability. Most users should prefer the @Endpoint
or
@WebEndpoint
annotation whenever possible.
- Since:
- 2.0.0
- Author:
- Phillip Webb
- See Also:
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
If the endpoint should be enabled or disabled by default.
-
Element Details
-
id
The id of the endpoint.- Returns:
- the id
-
-
-
enableByDefault
If the endpoint should be enabled or disabled by default.- Returns:
true
if the endpoint is enabled by default
- Default:
- true
-