spring MVC中获取request和response:
spring MVC中获取request和response:
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
HttpServletResponse response = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getResponse();
看完打开支付宝扫一扫领个红包吧!