SpringMVC优雅的获取HttpSevletRequest及HttpServletResponse简录
通常情况下,SpringMVC可以通过入参的方式绑定HttpServletRequest和HttpServletReponse(SpringMVC在调用处理器时会自动创建对应的HttpServletRequest和HttpServletReponse对象并传入适配的控制器方法中),例如:@Controller//通过参数,传入HttpServletRequest对象和HttpServletRe...