@Documented @Target(value=FIELD) @Retention(value=RUNTIME) @DesensitizeBy(handler=IdCardDesensitization.class) public @interface IdCardDesensitize
| 限定符和类型 | 可选元素和说明 |
|---|---|
int |
prefixKeep
前缀保留长度
|
String |
replacer
替换规则,身份证号码;比如:530321199204074611 脱敏之后为 530321**********11
|
int |
suffixKeep
后缀保留长度
|
public abstract String replacer
Copyright © 2025. All rights reserved.