@Retention(value=RUNTIME) public @interface Sensitive
Json序列化脱敏注解
使用方法如下: 在POJO的需要脱密的属性上加上@SensitiveInfo(SensitiveEnum.MOBILE_PHONE)即可
Modifier and Type | Required Element and Description |
---|---|
SensitiveEnum |
value |
public abstract SensitiveEnum value
Copyright © 2021. All rights reserved.