Spring Boot在aop中获取request对象

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

 

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