表单数据序列化、成功控件与后端接口契约 | HTML

本章覆盖:successful controls;`name=value`;GET query string;`application/x-www-form-urlencoded`;`multipart/form-data`;checkbox / radio / multiple select 的多值数据;未选中控件的提交行为;disabled 字段的提交行为;表单字段名与 DTO / Request 参数的对应关系;Java Spring Boot 接收表单与 JSON 的概念差异;永远在服务端重新做业务校验和权限校验。

本章知识点

  • successful controls
  • name=value
  • GET query string
  • application/x-www-form-urlencoded
  • multipart/form-data
  • checkbox / radio / multiple select 的多值数据
  • 未选中控件的提交行为
  • disabled 字段的提交行为
  • 表单字段名与 DTO / Request 参数的对应关系
  • Java Spring Boot 接收表单与 JSON 的概念差异
  • 永远在服务端重新做业务校验和权限校验