controller 接受body为application/x-www-form-urlencoded类型的请求
@RequestMapping(value = "/receive", method = RequestMethod.POST, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
public String receive(@RequestParam Map<String, String> params) throws UnsupportedEncodingException {
log.info("[receive] 请求入参 params={}", URLDecoder.decode(params.toString(), "UTF-8"));
return null;
}
浙公网安备 33010602011771号