通过RequestContextHolder获取HttpServletRequest
springMVC中,为了方便随时获取当前的request对象,可以通过RequestContextHolder的静态方法getRequestAttributes()获取Request相关的变量,如request, response等。RequestAttributes ra = RequestContextHolder.getRequestAttributes(); HttpSer