Web常见form 参数Content-Type 与Java参数校验@RequestParam

位置:首页>文章>详情   分类:教程分享   阅读(173)   2023-07-31 17:33:27

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 会报错提示找不到参数,参数未填写

 

 

地址:https://www.leftso.com/article/1684038149807804417.html