File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,12 @@ public class UseExample {
102102
103103### 2.配置
104104
105- | 配置 | 类型 | 备注 |
106- | ---------------- | ------------------------------ | ------------------------------------------------------------ |
107- | ignoreOrder | boolean | 是否比较过程中忽略数组顺序 |
108- | mapping | Map<String, String> | 将真实字段映射到期望字段,key是真实字段name,value是期望的字段name |
109- | ignorePath | Set\< String\> | 当对比的路径完全匹配时会被跳过。遇到数组使用 ` [] ` 即可。无需填入下标 |
110- | ignoreKey | Set\< String\> | 对比object时。或忽略该key。对整个json生效 |
105+ | 配置 | 类型 | 备注 |
106+ | ---------------- | ------------------------------ | ------------------------------------------------------------------------ |
107+ | ignoreOrder | boolean | 是否比较过程中忽略数组顺序 |
108+ | mapping | Map<String, String> | 将真实字段映射到期望字段,key是真实字段name,value是期望的字段name.当真实字段和期望的字段对应的key都存在时,该配置才生效 |
109+ | ignorePath | Set\< String\> | 当对比的路径完全匹配时会被跳过。遇到数组使用 ` [] ` 即可。无需填入下标 |
110+ | ignoreKey | Set\< String\> | 对比object时。或忽略该key。对整个json生效 |
111111
112112> 在 ` 2.0.1-RC1-RELEASE ` 之后版本中移除了 ` keyFunction ` 配置参数。可以使用 ` ignorePath ` 来代替达到同样的效果。
113113
You can’t perform that action at this time.
0 commit comments