HttpServletResponse实例化的另一种方法,具体成功与否待验证
HttpServletRequest方法相同
ServletRequestAttributes servletRequestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletResponse response = servletRequestAttributes.getResponse();
原文:https://www.cnblogs.com/huahuavip/p/9967968.html