qiubyte commented on issue #2410:
URL: https://github.com/apache/dubbo-go/issues/2410#issuecomment-2723708721
> Consumer:
>
> public class TestLongReq implements Serializable {
> private Long total;
>
> public Long getTotal() {
> return total;
> }
>
> public void setTotal(Long total) {
> this.total = total;
> }
> }
>
> public class TestLongResp implements Serializable {
> private Long total;
>
> public Long getTotal() {
> return total;
> }
>
> public void setTotal(Long total) {
> this.total = total;
> }
> }
>
> TestLongResp TestLong(TestLongReq req) throws Exception;
> Provider:
>
> type TestLongReq struct {
> Total *int64
> }
>
> func (req *TestLongReq) JavaClassName() string {
> return "org.apache.dubbo.samples.api.TestLongReq"
> }
>
> type TestLongResp struct {
> Total *int64
> }
>
> func (req *TestLongResp) JavaClassName() string {
> return "org.apache.dubbo.samples.api.TestLongResp"
> }
>
> func (u *UserProviderImpl) TestLong(ctx context.Context, req *TestLongReq)
(*TestLongResp, error) {
> return &TestLongResp{Total: req.Total}, nil
> }
>
> dubbo:
> protocols:
> dubbo:
> name: dubbo
> port: 20001
> provider:
> services:
> UserProviderImpl:
> interface: org.apache.dubbo.samples.api.UserProvider
> [@yukinomiu](https://github.com/yukinomiu) This works fine.
what's serialization used. I use hessian2, java consumer exception occurred
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]