Skip to content

Commit

Permalink
Update generic-reference.md (#2599)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfordjody committed May 18, 2023
1 parent f23791e commit d8d12c0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,12 @@ Google Protobuf 对象缺少标准的 JSON 格式,生成的服务元数据信
从服务元数据中也可以比较容易构建泛化调用对象。


> 注意事项
{{% alert title="注意事项" color="primary" %}}

1. 如果参数为基本类型或者 Date,List,Map 等,则不需要转换,直接调用。

2. 如果参数为其他 POJO,则使用 Map 代替。
{{% /alert %}}

如:
``` java
Expand Down Expand Up @@ -381,4 +382,4 @@ student.put("name", "xxx");
student.put("age", "xxx");
```

3. 对于其他序列化格式,需要特殊配置
3. 对于其他序列化格式,需要特殊配置

0 comments on commit d8d12c0

Please sign in to comment.