| | |
| | | "||@within(org.springframework.stereotype.Controller)") |
| | | public Object after(ProceedingJoinPoint joinPoint) throws Throwable{ |
| | | ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); |
| | | if(requestAttributes != null){ |
| | | return joinPoint.proceed(); |
| | | } |
| | | //if(requestAttributes != null){ |
| | | // return joinPoint.proceed(); |
| | | //} |
| | | HttpServletRequest request = requestAttributes.getRequest(); |
| | | long start = System.currentTimeMillis(); |
| | | Object result = joinPoint.proceed(joinPoint.getArgs()); |