数据绑定流程
DataBinder
获取请求参数
1.接受普通请求参数
2.HttpServletRequest
3.使用@RequestParam
注解获取参数
4.使用@RequestBody
获取JSON
参数
5.使用@PathVariable
获取URL
传递参数
6.自动封装成POJO
传递响应参数
1.HttpServletRequest
、Session
2.@RequestAttribute
3.@SessionAttribute
4.@SessionAttributes
2.ModelAndView
3.ModelMap
4.@ModelAttribute