类 EndpointWebMvcManagementContextConfiguration
- java.lang.Object
- org.springframework.boot.actuate.autoconfigure.EndpointWebMvcManagementContextConfiguration
@ManagementContextConfiguration @EnableConfigurationProperties({HealthMvcEndpointProperties.class,EndpointCorsProperties.class}) public class EndpointWebMvcManagementContextConfiguration extends Object
Configuration to exposeEndpointinstances over Spring MVC.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 EndpointWebMvcManagementContextConfiguration(HealthMvcEndpointProperties healthMvcEndpointProperties, ManagementServerProperties managementServerProperties, EndpointCorsProperties corsProperties, org.springframework.beans.factory.ObjectProvider<List<EndpointHandlerMappingCustomizer>> mappingCustomizers)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 AuditEventsMvcEndpointauditEventMvcEndpoint(AuditEventRepository auditEventRepository)EndpointHandlerMappingendpointHandlerMapping()EnvironmentMvcEndpointenvironmentMvcEndpoint(EnvironmentEndpoint delegate)HealthMvcEndpointhealthMvcEndpoint(HealthEndpoint delegate, ManagementServerProperties managementServerProperties)HeapdumpMvcEndpointheapdumpMvcEndpoint()LogFileMvcEndpointlogfileMvcEndpoint()LoggersMvcEndpointloggersMvcEndpoint(LoggersEndpoint delegate)MetricsMvcEndpointmetricsMvcEndpoint(MetricsEndpoint delegate)MvcEndpointsmvcEndpoints()ShutdownMvcEndpointshutdownMvcEndpoint(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)