Annotation Interface RequestRateLimit


@Target(METHOD) @Retention(RUNTIME) @Component public @interface RequestRateLimit
应用在 Controller 的接口上

lifeCycle() 生命周期内(秒)限制访问 value()

Version:
2021-08-16 17:57
Author:
夜雨
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    生命周期
    int
    生命周期内访问限制,默认 10 秒内 10 次
  • Element Details

    • value

      int value
      生命周期内访问限制,默认 10 秒内 10 次
      Returns:
      生命周期内限制访问次数
      Default:
      10
    • lifeCycle

      int lifeCycle
      生命周期
      Returns:
      生命周期秒数
      Default:
      10