dengzedong
2024-12-03 22d6c70a50235fb46bd6db500c99406b42d454e6
提交 | 用户 | 时间
e7c126 1 package com.iailab.framework.desensitize.core.annotation;
H 2
3 import com.iailab.framework.desensitize.core.DesensitizeTest;
4 import com.iailab.framework.desensitize.core.base.annotation.DesensitizeBy;
5 import com.iailab.framework.desensitize.core.handler.AddressHandler;
6 import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
7
8 import java.lang.annotation.Documented;
9 import java.lang.annotation.ElementType;
10 import java.lang.annotation.Retention;
11 import java.lang.annotation.RetentionPolicy;
12 import java.lang.annotation.Target;
13
14 /**
15  * 地址
16  *
17  * 用于 {@link DesensitizeTest} 测试使用
18  *
19  * @author gaibu
20  */
21 @Documented
22 @Target({ElementType.FIELD})
23 @Retention(RetentionPolicy.RUNTIME)
24 @JacksonAnnotationsInside
25 @DesensitizeBy(handler = AddressHandler.class)
26 public @interface Address {
27
28     String replacer() default "*";
29
30 }