springmvc接收数据

   前端需要传json数据

    接收参数 @RequestBody Student stu

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

posted on 2020-09-09 18:09  regretDeeply  阅读(181)  评论(0)    收藏  举报