一 开源项目地址
https://github.com/cakin24/spring-cloud-code/tree/master/ch16-2
二 测试
1 启动ch16-2-sleuth-provider
2 启动ch16-2-sleuth-consumer
3 在浏览器输入:http://localhost:8081/hello?name=cakin
三 说明
consumer使用自定义的Filter获取前端传来的sessionId,放入Baggage中,其中feign调用的方式将sessionId传递给Provider。