SpringMVC 请求参数

一、表单参数 1、非对象类型单个参数接收: 最常用的表单参数提交,ContentType指定为application/x-www-form-urlencoded 对应控制器如下: @RequestMapping("/test3") @ResponseBody public R test3(Integer code, String msg){ return new R(code, msg);
相关文章
相关标签/搜索