@ManagementContextConfiguration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value=org.springframework.web.servlet.DispatcherServlet.class) @ConditionalOnBean(value={org.springframework.web.servlet.DispatcherServlet.class,WebEndpointsSupplier.class}) @EnableConfigurationProperties(value=CorsEndpointProperties.class) public class WebMvcEndpointManagementContextConfiguration extends Object
@ManagementContextConfiguration
for Spring MVC
@Endpoint
concerns.Constructor and Description |
---|
WebMvcEndpointManagementContextConfiguration() |
Modifier and Type | Method and Description |
---|---|
ControllerEndpointHandlerMapping |
controllerEndpointHandlerMapping(ControllerEndpointsSupplier controllerEndpointsSupplier,
CorsEndpointProperties corsProperties,
WebEndpointProperties webEndpointProperties) |
AdditionalHealthEndpointPathsWebMvcHandlerMapping |
managementHealthEndpointWebMvcHandlerMapping(WebEndpointsSupplier webEndpointsSupplier,
HealthEndpointGroups groups) |
WebMvcEndpointHandlerMapping |
webEndpointServletHandlerMapping(WebEndpointsSupplier webEndpointsSupplier,
ServletEndpointsSupplier servletEndpointsSupplier,
ControllerEndpointsSupplier controllerEndpointsSupplier,
EndpointMediaTypes endpointMediaTypes,
CorsEndpointProperties corsProperties,
WebEndpointProperties webEndpointProperties,
Environment environment) |
public WebMvcEndpointManagementContextConfiguration()
@Bean @ConditionalOnMissingBean public WebMvcEndpointHandlerMapping webEndpointServletHandlerMapping(WebEndpointsSupplier webEndpointsSupplier, ServletEndpointsSupplier servletEndpointsSupplier, ControllerEndpointsSupplier controllerEndpointsSupplier, EndpointMediaTypes endpointMediaTypes, CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties, Environment environment)
@Bean @ConditionalOnManagementPort(value=DIFFERENT) @ConditionalOnBean(value=HealthEndpoint.class) @ConditionalOnAvailableEndpoint(endpoint=HealthEndpoint.class, exposure=WEB) public AdditionalHealthEndpointPathsWebMvcHandlerMapping managementHealthEndpointWebMvcHandlerMapping(WebEndpointsSupplier webEndpointsSupplier, HealthEndpointGroups groups)
@Bean @ConditionalOnMissingBean public ControllerEndpointHandlerMapping controllerEndpointHandlerMapping(ControllerEndpointsSupplier controllerEndpointsSupplier, CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties)