Springmvc HttpServletRequest 对象的方式
1、@Autowired
2、public void Test(HttpServletRequest request1, HttpServletResponse resp,HttpSession session1)
3、((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
4、Global.getHttpServletRequest(); 方式,该方式基于 第三种做的封装。