springcloud中
假如后端服务有
@RequestMapping("/test")
pubilc void test(@RequestBody MyPram myParam){
...
}在zuul网关的过滤器中,我要获取myParam的值,
RequestContext ctx = RequestContext.getCurrentContext(); HttpServletRequest request = ctx.getRequest();
然后如何通过Request获取myParam的值?
慕哥6287543
慕沐林林
Cats萌萌
随时随地看视频慕课网APP
相关分类