Form Data vs Json of Backend Api

通过浏览器提交表单

通过curl提交表单

spring-boot

map HTTP request header Content-Type, handle request body.

@RequestParam ← application/x-www-form-urlencoded,

@RequestBody ← application/json,

@RequestPart ← multipart/form-data,

form-data

Related