commit | author | age
|
43dc29
|
1 |
package com.odcc.cpzidc.common.filter; |
Y |
2 |
|
|
3 |
import com.alibaba.fastjson2.filter.SimplePropertyPreFilter; |
|
4 |
|
|
5 |
/** |
|
6 |
* 排除JSON敏感属性 |
|
7 |
* |
|
8 |
* @author ruoyi |
|
9 |
*/ |
|
10 |
public class PropertyPreExcludeFilter extends SimplePropertyPreFilter |
|
11 |
{ |
|
12 |
public PropertyPreExcludeFilter() |
|
13 |
{ |
|
14 |
} |
|
15 |
|
|
16 |
public PropertyPreExcludeFilter addExcludes(String... filters) |
|
17 |
{ |
|
18 |
for (int i = 0; i < filters.length; i++) |
|
19 |
{ |
|
20 |
this.getExcludes().add(filters[i]); |
|
21 |
} |
|
22 |
return this; |
|
23 |
} |
|
24 |
} |