springmvc 参数

springmvc接收数据

   前端需要传json数据

    接收参数 @RequestBody Student stu

前端传的数据类型 headers: { 'content-type': 'application/x-www-form-urlencoded' }
   接收参数类  Student stu
接收单个参数 @RequestParam(name = "id", value = "id") Integer id

原文地址:https://www.cnblogs.com/cjxns/p/13640410.html