I use spring mvc to develop my project.Code:@Component @Aspect public class SpringAspect { @Around("execution(* cn.luna.web.controller.*.*(..))") public Object doBasicProfiling(ProceedingJoinPoint pjp) throws Throwable { Method method=((MethodSignature)pjp.getSignature()).getMethod(); //Here I wanna get the HttpServletRequest request and the HttpServletReponse response,I don't know how to do. System.out.println("enter the method:"+method); Object result = pjp.proceed(); System.out.println("exit the method"); return result; } }
Thanks for help!!


Reply With Quote
