<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">请上传到maven长裤 自己编译不通过</p>
<p dir="auto">Dubbo选用http协议，consume发送的URL，如何添加自定义参数？</p>
<p dir="auto">查阅官方文档，发现有个“信息交换扩展（exchanger）”貌似可以实现在发送的URL里添加自定义参数。<br>
但，网上没有相关自定义扩展的案例，不知道如何实现？</p>
<p dir="auto">我期望的是：<br>
consume端，在发送URL时，携带sessionId一起发送，http请求。（求解）<br>
provider端，配有Spring Session的请求拦截器，通过URL获取到sessionId，以达到session共享的目的。（这部分已经扩展，可以从Cookie和URL里拦截请求获取sessionId）</p>
<p dir="auto">信息交换扩展<br>
扩展说明<br>
基于传输层之上，实现 Request-Response 信息交换语义。</p>
<p dir="auto">扩展接口<br>
com.alibaba.dubbo.remoting.exchange.Exchanger<br>
com.alibaba.dubbo.remoting.exchange.ExchangeServer<br>
com.alibaba.dubbo.remoting.exchange.ExchangeClient</p>
<p dir="auto">扩展配置<br>
&lt;dubbo:protocol exchanger="xxx" /&gt;</p>

<p dir="auto">&lt;dubbo:provider exchanger="xxx" /&gt;</p>
<p dir="auto">已知扩展<br>
com.alibaba.dubbo.remoting.exchange.exchanger.HeaderExchanger</p>