类 EndpointWebMvcManagementContextConfiguration
- java.lang.Object
- org.springframework.boot.actuate.autoconfigure.EndpointWebMvcManagementContextConfiguration
@ManagementContextConfiguration @EnableConfigurationProperties({HealthMvcEndpointProperties.class,EndpointCorsProperties.class}) public class EndpointWebMvcManagementContextConfiguration extends Object
Configuration to exposeEndpoint
instances over Spring MVC.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 EndpointWebMvcManagementContextConfiguration(HealthMvcEndpointProperties healthMvcEndpointProperties, ManagementServerProperties managementServerProperties, EndpointCorsProperties corsProperties, org.springframework.beans.factory.ObjectProvider<List<EndpointHandlerMappingCustomizer>> mappingCustomizers)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 AuditEventsMvcEndpoint
auditEventMvcEndpoint(AuditEventRepository auditEventRepository)
EndpointHandlerMapping
endpointHandlerMapping()
EnvironmentMvcEndpoint
environmentMvcEndpoint(EnvironmentEndpoint delegate)
HealthMvcEndpoint
healthMvcEndpoint(HealthEndpoint delegate, ManagementServerProperties managementServerProperties)
HeapdumpMvcEndpoint
heapdumpMvcEndpoint()
LogFileMvcEndpoint
logfileMvcEndpoint()
LoggersMvcEndpoint
loggersMvcEndpoint(LoggersEndpoint delegate)
MetricsMvcEndpoint
metricsMvcEndpoint(MetricsEndpoint delegate)
MvcEndpoints
mvcEndpoints()
ShutdownMvcEndpoint
shutdownMvcEndpoint(ShutdownEndpoint delegate)
构造器详细资料
EndpointWebMvcManagementContextConfiguration
public EndpointWebMvcManagementContextConfiguration(HealthMvcEndpointProperties healthMvcEndpointProperties, ManagementServerProperties managementServerProperties, EndpointCorsProperties corsProperties, org.springframework.beans.factory.ObjectProvider<List<EndpointHandlerMappingCustomizer>> mappingCustomizers)
方法详细资料
endpointHandlerMapping
@Bean @ConditionalOnMissingBean public EndpointHandlerMapping endpointHandlerMapping()
mvcEndpoints
@Bean @ConditionalOnMissingBean public MvcEndpoints mvcEndpoints()
environmentMvcEndpoint
@Bean @ConditionalOnMissingBean @ConditionalOnBean(EnvironmentEndpoint.class) @ConditionalOnEnabledEndpoint("env") public EnvironmentMvcEndpoint environmentMvcEndpoint(EnvironmentEndpoint delegate)
heapdumpMvcEndpoint
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint("heapdump") public HeapdumpMvcEndpoint heapdumpMvcEndpoint()
healthMvcEndpoint
@Bean @ConditionalOnBean(HealthEndpoint.class) @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint("health") public HealthMvcEndpoint healthMvcEndpoint(HealthEndpoint delegate, ManagementServerProperties managementServerProperties)
loggersMvcEndpoint
@Bean @ConditionalOnMissingBean @ConditionalOnBean(LoggersEndpoint.class) @ConditionalOnEnabledEndpoint("loggers") public LoggersMvcEndpoint loggersMvcEndpoint(LoggersEndpoint delegate)
metricsMvcEndpoint
@Bean @ConditionalOnMissingBean @ConditionalOnBean(MetricsEndpoint.class) @ConditionalOnEnabledEndpoint("metrics") public MetricsMvcEndpoint metricsMvcEndpoint(MetricsEndpoint delegate)
logfileMvcEndpoint
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint("logfile") @Conditional(org.springframework.boot.actuate.autoconfigure.EndpointWebMvcManagementContextConfiguration.LogFileCondition.class) public LogFileMvcEndpoint logfileMvcEndpoint()
shutdownMvcEndpoint
@Bean @ConditionalOnMissingBean @ConditionalOnBean(ShutdownEndpoint.class) @ConditionalOnEnabledEndpoint(value="shutdown", enabledByDefault=false) public ShutdownMvcEndpoint shutdownMvcEndpoint(ShutdownEndpoint delegate)
auditEventMvcEndpoint
@Bean @ConditionalOnMissingBean @ConditionalOnBean(AuditEventRepository.class) @ConditionalOnEnabledEndpoint("auditevents") public AuditEventsMvcEndpoint auditEventMvcEndpoint(AuditEventRepository auditEventRepository)