SpringMVC 請求參數

一、表單參數 1、非對象類型單個參數接收: 最常用的表單參數提交,ContentType指定爲application/x-www-form-urlencoded 對應控制器如下: @RequestMapping("/test3") @ResponseBody public R test3(Integer code, String msg){ return new R(code, msg);
相關文章
相關標籤/搜索