类 PathVariableMethodArgumentResolver

java.lang.Object
cn.taketoday.web.bind.resolver.AbstractNamedValueResolvingStrategy
cn.taketoday.web.bind.resolver.PathVariableMethodArgumentResolver
所有已实现的接口:
ParameterResolvingStrategy, UriComponentsContributor

public class PathVariableMethodArgumentResolver extends AbstractNamedValueResolvingStrategy implements UriComponentsContributor
Resolves method arguments annotated with an @PathVariable.

An @PathVariable is a named value that gets resolved from a URI template variable. It is always required and does not have a default value to fall back on. See the base class AbstractNamedValueResolvingStrategy for more information on how named values are processed.

If the method parameter type is Map, the name specified in the annotation is used to resolve the URI variable String value. The value is then converted to a Map via type conversion, assuming a suitable Converter has been registered.

从以下版本开始:
4.0 2022/2/3 16:32
作者:
Harry Yang