类 ServletEndpointRegistrar
java.lang.Object
org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar
- 所有已实现的接口:
ServletContextInitializer
@Deprecated(since="3.3.0",
forRemoval=true)
public class ServletEndpointRegistrar
extends Object
implements ServletContextInitializer
已过时, 待删除: 此 API 元素将从以后的版本中删除。
ServletContextInitializer to register servlet
endpoints.- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb, Madhura Bhave
-
构造器概要
构造器构造器说明ServletEndpointRegistrar(String basePath, Collection<ExposableServletEndpoint> servletEndpoints) 已过时, 待删除: 此 API 元素将从以后的版本中删除。ServletEndpointRegistrar(String basePath, Collection<ExposableServletEndpoint> servletEndpoints, EndpointAccessResolver endpointAccessResolver) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
方法概要
修饰符和类型方法说明voidonStartup(ServletContext servletContext) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Configure the givenServletContextwith any servlets, filters, listeners context-params and attributes necessary for initialization.
-
构造器详细资料
-
ServletEndpointRegistrar
public ServletEndpointRegistrar(String basePath, Collection<ExposableServletEndpoint> servletEndpoints) 已过时, 待删除: 此 API 元素将从以后的版本中删除。 -
ServletEndpointRegistrar
public ServletEndpointRegistrar(String basePath, Collection<ExposableServletEndpoint> servletEndpoints, EndpointAccessResolver endpointAccessResolver) 已过时, 待删除: 此 API 元素将从以后的版本中删除。
-
-
方法详细资料
-
onStartup
已过时, 待删除: 此 API 元素将从以后的版本中删除。从接口复制的说明:ServletContextInitializerConfigure the givenServletContextwith any servlets, filters, listeners context-params and attributes necessary for initialization.- 指定者:
onStartup在接口中ServletContextInitializer- 参数:
servletContext- theServletContextto initialize- 抛出:
ServletException- if any call against the givenServletContextthrows aServletException
-
@Endpointand@WebEndpointsupport