You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "luger1990 (via GitHub)" <gi...@apache.org> on 2023/06/14 09:11:36 UTC

[GitHub] [dubbo] luger1990 commented on issue #12478: 关于dubbo3.2默认使用fastjson2中的一个疑问,涉及@JSONField(serialize = false) 注解

luger1990 commented on issue #12478:
URL: https://github.com/apache/dubbo/issues/12478#issuecomment-1590807714

   > > 但是我测了测加上这个注解消费者依然可以获取到这个字段。所以有些疑惑麻烦帮忙解答。
   > > 20230612更新: 我又测试了一下传输DTO对象用了这个注解确实会忽略这个字段。。
   > 
   > 没太清楚现在的问题是什么
   
   就是provider中的DTO 一个属性加了@JSONField(serialize = false)注解,就会导致consumer获取不到这个字段,因为用的是fastjson2序列化,fastjson2根据注解忽略这个字段了。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org