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