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/07/27 01:15:16 UTC
[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1280: 网关中参数丢失
liubao68 commented on issue #1280: 网关中参数丢失
URL: https://github.com/apache/servicecomb-java-chassis/issues/1280#issuecomment-515639838
ServiceComb的gateway是根据契约转发的,接口里面未定义的请求会丢弃。
如果需要传递额外参数,可以通过InvocationContext,参考认证鉴权的例子. 先把额外参数从HttpServerFilter获取出来,放到InvocationContext里面,然后使用的地方从InvocationContext获取。
参考:
https://github.com/apache/servicecomb-fence/blob/master/api/edge-service/endpoint/src/main/java/org/apache/servicecomb/authentication/edge/AuthenticationFilter.java
https://docs.servicecomb.io/java-chassis/zh_CN/general-development/context.html
第二个问题,java数据结构存储的问题(Hash)
----------------------------------------------------------------
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