方法2、提供方修改,入参去掉 HttpServletResponse response,在实现内通过 RequestContextHolder 获取。 @RequestMapping(method=RequestMethod.POST,value="/api/download") voiddownload(@RequestBody@ValidatedRequestrequest) HttpServletResponseresponse=((ServletRequestAttributes)RequestContextHolder.getRequestAttributes())....
方法2、提供方修改,入参去掉 HttpServletResponse response,在实现内通过 RequestContextHolder 获取。 @RequestMapping(method=RequestMethod.POST,value="/api/download") voiddownload(@RequestBody@ValidatedRequestrequest) HttpServletResponseresponse=((ServletRequestAttributes)RequestContextHolder.getRequestAttributes())....