@Bean
    public WebMvcEndpointHandlerMapping webEndpointServletHandlerMapping(
        final EndpointLinksResolver endpointLinksResolver,
        final WebEndpointsSupplier webEndpointsSupplier,
        @Qualifier("restControllerEndpointDiscoverer")
        final EndpointsSupplier<RestActuatorControllerEndpoint> restEndpointsSupplier,
        final EndpointMediaTypes endpointMediaTypes,
        final CorsEndpointProperties corsProperties,
        final WebEndpointProperties webEndpointProperties,
        final Environment environment) {
        val webEndpoints = webEndpointsSupplier.getEndpoints();
        val basePath = webEndpointProperties.getBasePath();
        val endpointMapping = new EndpointMapping(basePath);
        val shouldRegisterLinksMapping = shouldRegisterLinksMapping(webEndpointProperties, environment, basePath);
        return new WebMvcEndpointHandlerMapping(endpointMapping, webEndpoints, endpointMediaTypes,
            corsProperties.toCorsConfiguration(), endpointLinksResolver, shouldRegisterLinksMapping);
    }
This is {@link CasCoreActuatorsConfiguration}.
Beans in this class are conditionally imported
depending on whether management endpoints are to be deployed
in a separate management context. 
@author Misagh Moayyed
@see CasCoreWebManagementContextConfiguration
@since 7.2.0
core/cas-server-core-web/src/main/java/org/apereo/cas/config/CasCoreActuatorsConfiguration.java