Springboot AOP Aspect 拦截中 获取HttpServletResponse response
代码:
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletResponse response = attributes.getResponse();
示例: