apache / dubbo-go

Go Implementation For Apache Dubbo .
https://dubbo.apache.org/
Apache License 2.0
4.71k stars 925 forks source link

出参是基本类型要怎么写 #706

Closed iamhyz closed 4 years ago

iamhyz commented 4 years ago

本人搞java的,go不太懂。有没有大佬教一下,如果响应是String,这句 hessian.RegisterPOJO(&User{}) 要改成啥?

zouyx commented 4 years ago

本人搞java的,go不太懂。有没有大佬教一下,如果响应是String,这句 hessian.RegisterPOJO(&User{}) 要改成啥?

String only or String in entity?

iamhyz commented 4 years ago

String only

String only

AlexStocks commented 4 years ago

cc @fangyincheng

这是个好问题,我是不是需要在 dubbo-go-hessian2 里面内之下 java Sting/Integer 等基本 class 的实现?

fangyincheng commented 4 years ago

string不需要registerPojo,默认已经支持了的

zouyx commented 4 years ago

@iamhyz any problems?