You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/08/09 02:29:50 UTC

[GitHub] [dubbo] real-rookieeee opened a new issue, #10421: 关于dubbo协议转rest协议的一些疑问

real-rookieeee opened a new issue, #10421:
URL: https://github.com/apache/dubbo/issues/10421

   各位大佬们好:
      最近项目组需要把一些存量的dubbo接口同时发布rest接口,遇到了以下2个问题:
      1.对于单参数的接口,可以通过@Path等注解同时发布rest协议,但是对于多参数接口,例如  Test test(Test test1, Test test2); 这样的接口,在不修改入参类型的前提下,暂时没找到方法进行反序列化(除非新建一个类,把test1、test2包装一下,但这种做法修改了入参类型);
      2.dubbo协议接口的参数可以定义为父类,消费者调用时,可以传入具体的子类,生产者可以反序列化成具体的子类,但是rest协议无法支持这种接口。
      对于以上2个问题,好像可以通过实现resteasy的反序列化spi的方式进行解决。请问在dubbo框架中,有相关的解决方法吗?或者大佬们有什么更好地建议吗?


-- 
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.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