批注接口 WebEndpoint
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Endpoint
@FilteredEndpoint(org.springframework.boot.actuate.endpoint.web.annotation.WebEndpointFilter.class)
public @interface WebEndpoint
Identifies a type as being an endpoint that is only exposed over HTTP.
- 从以下版本开始:
- 2.0.0
- 作者:
- Andy Wilkinson, Phillip Webb
-
必需元素概要
所需元素 -
可选元素概要
可选元素修饰符和类型可选元素说明Level of access to the endpoint that is permitted by default.boolean
已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
元素详细资料
-
id
The id of the endpoint.- 返回:
- the id
-
enableByDefault
@Deprecated(since="3.4.0", forRemoval=true) @AliasFor(annotation=Endpoint.class) boolean enableByDefault已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.4.0 for removal in 4.0.0 in favor ofdefaultAccess()
If the endpoint should be enabled or disabled by default.- 返回:
true
if the endpoint is enabled by default
- 默认值:
true
-
defaultAccess
Level of access to the endpoint that is permitted by default.- 返回:
- the default level of access
- 从以下版本开始:
- 3.4.0
- 默认值:
UNRESTRICTED
-
defaultAccess()