Class WebMvcEndpointManagementContextConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.endpoint.web.servlet.WebMvcEndpointManagementContextConfiguration
@ManagementContextConfiguration(proxyBeanMethods=false)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass(org.springframework.web.servlet.DispatcherServlet.class)
@ConditionalOnBean({org.springframework.web.servlet.DispatcherServlet.class,WebEndpointsSupplier.class})
@EnableConfigurationProperties(CorsEndpointProperties.class)
public class WebMvcEndpointManagementContextConfiguration
extends Object
@ManagementContextConfiguration
for Spring MVC
@Endpoint
concerns.- Since:
- 2.0.0
- Author:
- Andy Wilkinson, Phillip Webb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncontrollerEndpointHandlerMapping
(ControllerEndpointsSupplier controllerEndpointsSupplier, CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties, EndpointAccessResolver endpointAccessResolver) Deprecated, for removal: This API element is subject to removal in a future version.managementHealthEndpointWebMvcHandlerMapping
(WebEndpointsSupplier webEndpointsSupplier, HealthEndpointGroups groups) webEndpointServletHandlerMapping
(WebEndpointsSupplier webEndpointsSupplier, ServletEndpointsSupplier servletEndpointsSupplier, ControllerEndpointsSupplier controllerEndpointsSupplier, EndpointMediaTypes endpointMediaTypes, CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties, Environment environment)
-
Constructor Details
-
WebMvcEndpointManagementContextConfiguration
public WebMvcEndpointManagementContextConfiguration()
-
-
Method Details
-
webEndpointServletHandlerMapping
@Bean @ConditionalOnMissingBean public WebMvcEndpointHandlerMapping webEndpointServletHandlerMapping(WebEndpointsSupplier webEndpointsSupplier, ServletEndpointsSupplier servletEndpointsSupplier, ControllerEndpointsSupplier controllerEndpointsSupplier, EndpointMediaTypes endpointMediaTypes, CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties, Environment environment) -
managementHealthEndpointWebMvcHandlerMapping
@Bean @ConditionalOnManagementPort(DIFFERENT) @ConditionalOnBean(HealthEndpoint.class) @ConditionalOnAvailableEndpoint(endpoint=HealthEndpoint.class, exposure=WEB) public AdditionalHealthEndpointPathsWebMvcHandlerMapping managementHealthEndpointWebMvcHandlerMapping(WebEndpointsSupplier webEndpointsSupplier, HealthEndpointGroups groups) -
controllerEndpointHandlerMapping
@Bean @ConditionalOnMissingBean @Deprecated(since="3.3.5", forRemoval=true) public ControllerEndpointHandlerMapping controllerEndpointHandlerMapping(ControllerEndpointsSupplier controllerEndpointsSupplier, CorsEndpointProperties corsProperties, WebEndpointProperties webEndpointProperties, EndpointAccessResolver endpointAccessResolver) Deprecated, for removal: This API element is subject to removal in a future version.
-