接口 UriComponentsContributor

    • 方法详细资料

      • contributeMethodArgument

        void contributeMethodArgument​(MethodParameter parameter,
                                      Object value,
                                      UriComponentsBuilder builder,
                                      Map<String,​Object> uriVariables,
                                      ConversionService conversionService)
        Process the given method argument and either update the UriComponentsBuilder or add to the map with URI variables to use to expand the URI after all arguments are processed.
        参数:
        parameter - the controller method parameter (never null)
        value - the argument value (possibly null)
        builder - the builder to update (never null)
        uriVariables - a map to add URI variables to (never null)
        conversionService - a ConversionService to format values as Strings