Binhao Qian
Binhao Qian
Same issue here. After some debugging, root cause should be: https://github.com/springfox/springfox/blob/07a4c86d70b791f21c2d2f656a863920b8c883c7/springfox-swagger2/src/main/java/springfox/documentation/swagger2/mappers/ServiceModelToSwagger2Mapper.java#L117 Springfox 3.0 uses v3 models by default, but `source.getResponses()` gives wrong type. To workaround it for now, add: `springfox.documentation.swagger.use-model-v3=false`...
Thanks for your info, I've already read the comment. Three roles: the original client, the original server, the downstream client. The sample shows how to attach the connection of downstream...
@joway 就是想实现一个简单的类似haproxy的tcp代理。只是说调用客户端api的时候,也可以绑定一个context可以用来传递额外参数。
@Emove yep, that's what i suggested to have...
@joway 可以这样实现。不过添加context支持到客户端api,保持了跟服务端api的一致性。如果理解正确的话,对于客户端api来说,context参数在所有OnXXXXX()回调里完全是空的,没有用。