注释类型 DynamicParameter


  • @Deprecated
    @Target(METHOD)
    @Retention(RUNTIME)
    @Documented
    public @interface DynamicParameter
    已过时。
    Note: 自Knife4j 4.0版本起,放弃维护此属性值,建议开发者建实体类
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      java.lang.Class<?> dataTypeClass
      已过时。
      The class of the parameter.
      java.lang.String example
      已过时。
      a single example for non-body type parameters
      java.lang.String name
      已过时。
      Name of the parameter.
      boolean required
      已过时。
      Specifies if the parameter is required or not.
      java.lang.String value
      已过时。
      A brief description of the parameter.
    • 元素详细资料

      • name

        java.lang.String name
        已过时。
        Name of the parameter.
        返回:
        属性名称
        默认值:
        ""
      • value

        java.lang.String value
        已过时。
        A brief description of the parameter.
        返回:
        属性说明
        默认值:
        ""
      • required

        boolean required
        已过时。
        Specifies if the parameter is required or not.

        Path parameters should always be set as required.

        返回:
        是否必传
        默认值:
        false
      • dataTypeClass

        java.lang.Class<?> dataTypeClass
        已过时。
        The class of the parameter.

        Overrides dataType if provided.

        返回:
        属性类型
        默认值:
        java.lang.Void.class
      • example

        java.lang.String example
        已过时。
        a single example for non-body type parameters
        返回:
        属性示例
        从以下版本开始:
        1.5.4
        默认值:
        ""