swagger,HttpServletRequest 传参
@ApiOperation(value = "回调", notes = "回调")
@RequestMapping(value = "/notoken/sign/callback", method = RequestMethod.POST)
public ResponseEntity<?> callback(HttpServletRequest request) throws Exception {
return ResponseEntity.ok(request.getParameter("tenantId"));
}
请问我该如何用swagger向里面传值?如果是多个参数怎么传?
回答
其原因是我fillter里面拦截并更改了请求体的数据。于是我在swagger里面插入的数据都被篡改了。