See https://github.com/spring-projects/spring-framework/issues/26428. I think we can update Servlet and Reactive ControllerEndpointHandlerMapping classes