Annotation Interface Desensitize


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface Desensitize

标记字段在API输出时自动脱敏

作者:
Hamm.cn
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static enum 
    脱敏方式
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    脱敏类型
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    int
    开始保留位数
    脱敏符号
    int
    结束保留位数
  • 元素详细资料

    • head

      int head

      开始保留位数

      默认值:
      0
    • tail

      int tail

      结束保留位数

      默认值:
      0
    • symbol

      String symbol

      脱敏符号

      默认值:
      "*"