open class RequestParamMethodArgumentResolver : AbstractNamedValueSyncArgumentResolver
Resolver for method arguments annotated with @RequestParam from URI query string parameters.
This resolver can also be created in default resolution mode in which simple types (int, long, etc.) not annotated with @RequestParam are also treated as request parameters with the parameter name derived from the argument name.
If the method parameter type is Map, the name specified in the annotation is used to resolve the request parameter String value. The value is then converted to a Map via type conversion assuming a suitable Converter has been registered. Or if a request parameter name is not specified the RequestParamMapMethodArgumentResolver is used instead to provide access to all request parameters in the form of a map.
Author
Rossen Stoyanchev
Since
5.0
See Also
RequestParamMapMethodArgumentResolver
RequestParamMethodArgumentResolver(factory: ConfigurableBeanFactory, registry: ReactiveAdapterRegistry, useDefaultResolution: Boolean)
Class constructor with a default resolution mode flag. |
open fun supportsParameter(param: MethodParameter): Boolean |