How to get the parameters corresponding to @ RequestBody in Request?

in springcloud
if the backend service has

@RequestMapping("/test")
pubilc void test(@RequestBody MyPram myParam){
    ...
}

in the filter of the zuul gateway, I want to get the value of myParam,

    RequestContext ctx = RequestContext.getCurrentContext();
    HttpServletRequest request = ctx.getRequest();
    

then how do I get the value of myParam through Request?

Jul.19,2022

  

now that you can get the request.
then you can directly request.getParamXXXXX () forget the specific method name

Menu