dubbo-go icon indicating copy to clipboard operation
dubbo-go copied to clipboard

provider返回对象中有不想被consumer获取到的属性被获取到了

Open alan2016llg opened this issue 1 year ago • 2 comments

What would you like to be added: 通过go调用java的服务时,返回对象中存在如以下被注解标注不期望被消费端看见的属性时,在消费端任然被获取到。
@JSONField( serialize = false, deserialize = false ) @JsonIgnore public boolean isSuccess() { return this.status == 200; }

Why is this needed: 对返回结果做进一步的解析处理,像java的消费端一样,过滤调期望被隐藏的属性

alan2016llg avatar Jan 12 '24 03:01 alan2016llg

thx, would you like to complete this issue?

FinalT avatar Jan 13 '24 06:01 FinalT

This should be a serialization issue,plz check your serializer doc for help,make a field transient in java server side should work

FoghostCn avatar Jan 14 '24 03:01 FoghostCn