You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/12/04 09:07:33 UTC

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1440: cse中如何获取request、response

liubao68 commented on issue #1440: cse中如何获取request、response
URL: https://github.com/apache/servicecomb-java-chassis/issues/1440#issuecomment-561545200
 
 
   你可以看看[原理](https://bbs.huaweicloud.com/forum/thread-27592-1-1.html)了解下与Spring MVC(基于servlet)的差异。 servicecomb本质上是一个RPC框架,可以基于servlet,也可以基于非servlet,是不可以注入HttpServletRequest 和 HttpServletResponse的。 另外, ServiceComb整体运行流程是异步的,也不能像spring mvc那样通过ThreadLocal做一些变量保存,做一些特殊的基于ThreadLoacle的拦截和注入。 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services