This improves support for programmatic mapping registration following the same config as other mappings managed in RequestMappingHandlerMapping.

See also issue #27715.