@Override
    protected void registerHandlerMethod(@Nonnull final Object handler, @Nonnull final Method method, @Nonnull final RequestMappingInfo mapping) {
        val endpoint = this.handlers.get(handler);
        val mappingWithPatterns = withEndpointMappedPatterns(endpoint, mapping);
        super.registerHandlerMethod(handler, method, mappingWithPatterns);
    }
This is {@link RestActuatorEndpointHandlerMapping}.

@author Misagh Moayyed
@since 7.1.0
api/cas-server-core-api-util/src/main/java/org/apereo/cas/util/spring/RestActuatorEndpointHandlerMapping.java