Web常见form 参数Content-Type 与Java参数校验@RequestParam
form-data :multipart/form-data; boundary=<calculated when request is sent>
x-www-from-urlencoded:Content-Type:application/x-www-form-urlencoded
在Java后端使用@RequestParam 校验必填时候,需要使用form-data的Content-Type,使用x-www-from-urlencoded 会报错提示找不到参数,参数未填写
版权所有 © 【代码谷】 欢迎非商用转载,转载请按下面格式注明出处,商业转载请联系授权,违者必究。(提示:点击下方内容复制出处)
源文:《Web常见form 参数Content-Type 与Java参数校验@RequestParam》,链接:https://www.daimagu.com/article/1684038149807804417.html,来源:【代码谷】
评论