Java AOP 获取HttpSevletRequest、HttpSevletResponse、HttpSession对象

((ServletRequestAttributes) RequestContextHolder.getRequestAttributes())

((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest()

((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getResponse()
 
posted @ 2019-06-17 15:08  HaowenBi  阅读(1118)  评论(0编辑  收藏  举报