你的位置:首页 > 信息动态 > 新闻中心
信息动态
联系我们

springboot 获取HttpServletRequest和HttpServletResponse

2021/11/7 18:56:22
HttpServletRequest request =((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
HttpServletResponse response =((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getResponse();