Skip to content

Latest commit

 

History

History

dataSensitive

dataSensitive

简介

通过注解的方式,重写jackson的序列化,对api接口响应数据脱敏

作用

解决业务需求要对敏感字段脱敏的需求

说明

请求示例:dataSensitive.http

脱敏前:
{
    "uid": 123,
    "userName": "云天明",
    "registerPhone": "13312345678",
    "bankCardNum": "6212260001007512123",
    "cid": "14013320000101002X"
}
脱敏后:
{
    "uid": 123,
    "userName": "云**",
    "registerPhone": "133****5678",
    "bankCardNum": "6212 **** **** *** 2123",
    "cid": "1401**********002X"
}