apache / apache/dubbo

PojoUtils 序列化代码中生成class字段的作用?

Open
#9,591 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.

## Ask your question here
PojoUtils中有个关于clas配置的代码
```
if (GENERIC_WITH_CLZ) {
map.put("class", pojo.getClass().getName());
}
```
默认给对象map塞了个class,除非配置关闭,**想问下这个class在哪些场景可能会使用到**

我这边有个场景,网关泛化访问dubbo,提供面客端响应,想从provider全局去除这个class,但是不确定影响范围
目前临时从consumer(网关测)去除了class字段

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.