package com.newfiber.common.sensitive.annotation; import com.fasterxml.jackson.annotation.JacksonAnnotationsInside; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * 中文姓名脱敏 * @author yhq * @date 2021年9月7日 08点51分 **/ @Documented @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) @SensitiveInfo(strategy = com.newfiber.common.sensitive.strategy.SensitiveChineseName.class, pattern = "(?<=.{1}).",replaceChar = "*") @JacksonAnnotationsInside public @interface SensitiveChineseName { }