Spring 手动获取request和response

//获取response
HttpServletResponse response = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getResponse();
//获取request HttpServletRequest response
= ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();

 

posted @   七脉  阅读(252)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示