@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Endpoint @FilteredEndpoint(value=org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointFilter.class) @ResponseBody public @interface RestControllerEndpoint
@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 annotations whenever possible.
WebEndpoint,
ControllerEndpoint| 限定符和类型 | 必需的元素和说明 |
|---|---|
java.lang.String |
id
The id of the endpoint.
|
| 限定符和类型 | 可选元素和说明 |
|---|---|
boolean |
enableByDefault
If the endpoint should be enabled or disabled by default.
|
@AliasFor(annotation=Endpoint.class) public abstract java.lang.String id
@AliasFor(annotation=Endpoint.class) public abstract boolean enableByDefault
true if the endpoint is enabled by default