Spring Boot在aop中获取request对象

doBefore(){
 ServetRequestAttrbtes attributes = (ServetRequestAttrbtes)RequestContextHolder.getHttpattributes();
 HttpServletRequest request = attributes.getRequest();
}

 

posted @ 2018-01-22 21:41  413Xiaol  阅读(3993)  评论(0编辑  收藏  举报