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.SensitiveMobile.class,pattern = "(?<=\\w{3})\\w(?=\\w{4})",replaceChar = "*") @JacksonAnnotationsInside public @interface SensitiveMobile { }