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

[GitHub] [dubbo] tell1014 opened a new issue, #12165: Dubbo 3.2.0版本REST是部分是重写了吗?有很多功能都不能用了

tell1014 opened a new issue, #12165:
URL: https://github.com/apache/dubbo/issues/12165

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ## Ask your question here
   使用3.2.0版本后,从参考[rest协议文档](https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/reference-manual/protocol/rest/)配置,有很多功能都不能正常使用了。
   1、REST Server只支持netty,配置成其他最后实例化都是使用NettyHttpRestServer,看了源码好像确实是只支持netty。
   2、不能设置response stutus。
   3、不能使用JAX-RS标准的@Context annotation值得获取的上下文信息了。
   4、不能使用JAX-RS标准的ExceptionMapper。
   5、不能输出HTTP日志。
   6、dubbo-rpc-rest包依赖了JAX-RS的实现RESTEasy,但不能处理javax.ws.rs.core.Response。
   
   在3.1.9版本就没有出现上述几个问题,使用相同的xml配置信息在3.2.0版本只有上述问题,不是说升级到3.2.0是完全平滑的吗?
   不知道是我配置有问题还是不再支持了。
   配置信息:
   `
       <dubbo:application name="test-demo-provider" logger="slf4j"/>
       <dubbo:registry address="nacos://nacos:nacos@127.0.0.1:8848"/>
       <dubbo:protocol name="rest" server="tomcat" port="8080"/>
       <bean id="userService" class="com.mydomain.test.service.impl.UserServiceImpl"/>
       <dubbo:service interface="com.mydomain.test.service.UserService" ref="userService"/>
   `
   
   


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


[GitHub] [dubbo] suncairong163 commented on issue #12165: Dubbo 3.2.0版本REST是部分是重写了吗?有很多功能都不能用了

Posted by "suncairong163 (via GitHub)" <gi...@apache.org>.
suncairong163 commented on issue #12165:
URL: https://github.com/apache/dubbo/issues/12165#issuecomment-1521226889

   https://github.com/apache/dubbo/pull/12183 这个是最新新rest使用demo可以参考一下


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


[GitHub] [dubbo] tell1014 commented on issue #12165: Dubbo 3.2.0版本REST是部分是重写了吗?有很多功能都不能用了

Posted by "tell1014 (via GitHub)" <gi...@apache.org>.
tell1014 commented on issue #12165:
URL: https://github.com/apache/dubbo/issues/12165#issuecomment-1521362683

   > #12183 这个是最新新rest使用demo可以参考一下
   
   thanks


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


[GitHub] [dubbo] suncairong163 commented on issue #12165: Dubbo 3.2.0版本REST是部分是重写了吗?有很多功能都不能用了

Posted by "suncairong163 (via GitHub)" <gi...@apache.org>.
suncairong163 commented on issue #12165:
URL: https://github.com/apache/dubbo/issues/12165#issuecomment-1521225393

   3.2重写了server,仅使用netty,作为server,,原本的servlet web容器实现全部去除了。jaxrs目前只是依赖它的rest 注解,response,这块不再依赖,后面会做适配处理,exceptionMapper,duubo内部自己实现了,


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


[GitHub] [dubbo] songxiaosheng commented on issue #12165: Dubbo 3.2.0版本REST是部分是重写了吗?有很多功能都不能用了

Posted by "songxiaosheng (via GitHub)" <gi...@apache.org>.
songxiaosheng commented on issue #12165:
URL: https://github.com/apache/dubbo/issues/12165#issuecomment-1519195030

   @suncairong163 


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


Re: [I] Dubbo 3.2.0版本REST是部分是重写了吗?有很多功能都不能用了 [dubbo]

Posted by "wxbty (via GitHub)" <gi...@apache.org>.
wxbty closed issue #12165: Dubbo 3.2.0版本REST是部分是重写了吗?有很多功能都不能用了
URL: https://github.com/apache/dubbo/issues/12165


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