Annotation Type RequestParam


  • @Target(PARAMETER)
    @Retention(RUNTIME)
    public @interface RequestParam
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String defaultValue
      The default value.
      java.lang.String delimiter
      Specifies the delimiter for splitting the request parameter into multiple values.
      boolean required
      Indicates whether the parameter is required.
      java.lang.String value
      The request parameter name.
    • Element Detail

      • value

        java.lang.String value
        The request parameter name. If not specified, the parameter's Java variable name will be used instead. The variable name is only available if classes are compiled with debug info.
        Default:
        ""
      • defaultValue

        java.lang.String defaultValue
        The default value. If a default value is specified, the required() setting has no effect.
        Default:
        ""
      • required

        boolean required
        Indicates whether the parameter is required. This setting has no effect if defaultValue() is specified
        Default:
        true
      • delimiter

        java.lang.String delimiter
        Specifies the delimiter for splitting the request parameter into multiple values. This setting only has effect if the argument is an Array.
        Default:
        ""