Spring Boot在aop中获取request对象

时间:2018-01-22 22:08:36   收藏:0   阅读:1022
doBefore(){
 ServetRequestAttrbtes attributes = (ServetRequestAttrbtes)RequestContextHolder.getHttpattributes();
 HttpServletRequest request = attributes.getRequest();
}

 

原文:https://www.cnblogs.com/413xiaol/p/8331272.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!