批注接口 ScxRoute


@Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface ScxRoute
路由注解 默认会在方法上进行继承 如果想在子类禁用 请使用 NoScxRoute
版本:
0.3.6
作者:
scx567888
  • 元素详细资料

    • value

      String value
      返回:
      the path
      另请参阅:
      • Router.route(String)
      默认值:
      "THIS IS A SPECIAL NULL VALUE FOR ANNOTATION - DO NOT USE\n"
    • methods

      HttpMethod[] methods
      返回:
      the path
      另请参阅:
      • (String)
      默认值:
      {}
    • consumes

      String[] consumes
      返回:
      the path
      另请参阅:
      • Route.consumes(String)
      默认值:
      {}
    • produces

      String[] produces
      返回:
      the path
      另请参阅:
      • Route.produces(String)
      默认值:
      {}
    • order

      int order
      排序
      返回:
      a
      默认值:
      0
    • ignoreParentUrl

      boolean ignoreParentUrl
      是否忽略类级别上的 ScxRoute 注解所定义的顶级 url
      返回:
      是否
      默认值:
      false
    • useNameAsUrl

      boolean useNameAsUrl
      注意 : 仅当作用于方法时生效 !!! 是否使用方法名称作为 url 路径
      仅当 value 为 "" 时生效
      规则为 获取方法名称 然后转换为 短横线命名法
      如 方法名为 getUserList 则 url 为 /user/get-user-list
      返回:
      标识
      默认值:
      true