Spring Boot在aop中获取request对象
doBefore(){ ServetRequestAttrbtes attributes = (ServetRequestAttrbtes)RequestContextHolder.getHttpattributes(); HttpServletRequest request = attributes.getRequest(); }
doBefore(){ ServetRequestAttrbtes attributes = (ServetRequestAttrbtes)RequestContextHolder.getHttpattributes(); HttpServletRequest request = attributes.getRequest(); }