个人博客
1.学到的东西
22-SpringMVC的请求-获得请求参数-获得Servlet相关API(应用)
SpringMVC支持使用原始ServletAPI对象作为控制器方法的参数进行注入,常用的对象如下:
HttpServletRequest
HttpServletResponse
HttpSession
@RequestMapping(value="/quick19")
@ResponseBody
public void save19(HttpServletRequest request, HttpServletResponse response, HttpSession session) throws IOException {
System.out.println(request);
System.out.println(response);
System.out.println(session);
}
2.明日计划
获得请求参数-获得请求头信息(应用)