@Component @ConditionalOnClass(value=com.alibaba.fastjson2.JSON.class) public class FastJson2Parser extends Object implements ILogJsonParser
| 构造器和说明 |
|---|
FastJson2Parser() |
| 限定符和类型 | 方法和说明 |
|---|---|
PropertyPreExcludeFilter |
excludePropertyPreFilter(String[] excludeParamNames)
忽略敏感属性
|
String |
toJSONString(Object o,
String[] excludeParamNames)
Serialize Java Object to JSON
|
public String toJSONString(Object o, String[] excludeParamNames)
toJSONString 在接口中 ILogJsonParsero - oexcludeParamNames - 排除参数名称Stringpublic PropertyPreExcludeFilter excludePropertyPreFilter(String[] excludeParamNames)
Copyright © 2023. All rights reserved.