在原始的web程序中,获取请求参数,需要通过HttpServletRequest对象手动获取。
//实体参数
@RequestMapping("/json")
public String simplePojo(@RequestBody User user){
System.out.println(user);
return "ok";
}
在原始的web程序中,获取请求参数,需要通过HttpServletRequest对象手动获取。
//实体参数
@RequestMapping("/json")
public String simplePojo(@RequestBody User user){
System.out.println(user);
return "ok";
}