注释类型 MatrixVariable


  • @Target(PARAMETER)
    @Retention(RUNTIME)
    @Documented
    public @interface MatrixVariable
    Annotation which indicates that a method parameter should be bound to a name-value pair within a path segment. Supported for RequestMapping annotated handler methods in Servlet environments.

    If the method parameter type is Map and a matrix variable name is specified, then the matrix variable value is converted to a Map assuming an appropriate conversion strategy is available.

    If the method parameter is Map<String, String> or MultiValueMap<String, String> and a variable name is not specified, then the map is populated with all matrix variable names and values.

    从以下版本开始:
    3.2
    作者:
    Rossen Stoyanchev, Sam Brannen