25 lines
505 B
Plaintext
25 lines
505 B
Plaintext
|
|
package com.securityControl.common.log.filter;
|
||
|
|
|
||
|
|
import com.alibaba.fastjson2.filter.SimplePropertyPreFilter;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 排除JSON敏感属性
|
||
|
|
*
|
||
|
|
* @author czc
|
||
|
|
*/
|
||
|
|
public class PropertyPreExcludeFilter extends SimplePropertyPreFilter
|
||
|
|
{
|
||
|
|
public PropertyPreExcludeFilter()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public PropertyPreExcludeFilter addExcludes(String... filters)
|
||
|
|
{
|
||
|
|
for (int i = 0; i < filters.length; i++)
|
||
|
|
{
|
||
|
|
this.getExcludes().add(filters[i]);
|
||
|
|
}
|
||
|
|
return this;
|
||
|
|
}
|
||
|
|
}
|