类 EndpointWebMvcAutoConfiguration
- java.lang.Object
- org.springframework.boot.actuate.autoconfigure.EndpointWebMvcAutoConfiguration
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.SmartInitializingSingleton
,org.springframework.context.ApplicationContextAware
@Configuration @ConditionalOnClass({javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class}) @ConditionalOnWebApplication public class EndpointWebMvcAutoConfiguration extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.SmartInitializingSingleton
Auto-configuration
to enable Spring MVC to handleEndpoint
requests. If theManagementServerProperties
specifies a different port toServerProperties
a new child context is created, otherwise it is assumed that endpoint requests will be mapped and handled via an already registeredDispatcherServlet
.
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static class
EndpointWebMvcAutoConfiguration.ApplicationContextFilterConfiguration
protected static class
EndpointWebMvcAutoConfiguration.EndpointWebMvcConfiguration
protected static class
EndpointWebMvcAutoConfiguration.ManagementServerPort
构造器概要
构造器 构造器 说明 EndpointWebMvcAutoConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterSingletonsInstantiated()
ManagementContextResolver
managementContextResolver()
ManagementServletContext
managementServletContext(ManagementServerProperties properties)
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
构造器详细资料
EndpointWebMvcAutoConfiguration
public EndpointWebMvcAutoConfiguration()
方法详细资料
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- 指定者:
setApplicationContext
在接口中org.springframework.context.ApplicationContextAware
- 抛出:
org.springframework.beans.BeansException
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
- 指定者:
setBeanFactory
在接口中org.springframework.beans.factory.BeanFactoryAware
- 抛出:
org.springframework.beans.BeansException
managementContextResolver
@Bean public ManagementContextResolver managementContextResolver()
managementServletContext
@Bean public ManagementServletContext managementServletContext(ManagementServerProperties properties)
afterSingletonsInstantiated
public void afterSingletonsInstantiated()
- 指定者:
afterSingletonsInstantiated
在接口中org.springframework.beans.factory.SmartInitializingSingleton