Annotation Interface ScxMapping


@Target({METHOD,TYPE}) @Retention(RUNTIME) public @interface ScxMapping
ScxMapping 具体 http 请求映射
版本:
0.3.6
作者:
scx567888
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
    是否忽略类级别上的 ScxMapping 注解所定义的顶级 url
    cool.scx.enumeration.HttpMethod[]
    请求标识 默认匹配所有请求
    int
    排序
    boolean
    注意 : 仅当作用于方法时生效 !!!
    映射的路径
  • 元素详细资料

    • ignoreParentUrl

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

      String value
      映射的路径
      返回:
      路径
      默认值:
      ""
    • useNameAsUrl

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

      cool.scx.enumeration.HttpMethod[] method
      请求标识 默认匹配所有请求
      返回:
      方法
      默认值:
      {}
    • order

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