java 获取request和response的一种方法
java获取request和response:HttpServletResponseresponse=((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getResponse();//获取responseHttpServletRequestrequest=((Se...