Hello All,

I am trying to insert an aspect to find the method execution time on my Controller (annotated with @Controller)

I have the <aop:aspectj-autoproxy/> on my applicationContext.xml file.

I am using the pointcut to invoke on a specific method on the controller say - com.test.tech.MyController.test(..)

Code:
 @Pointcut("within(@org.springframework.stereotype.Controller *)")
    public void controllerBean() {}

 @Pointcut("execution(* com.test.tech.MyController.test(..))")
    public void methodPointcut() {}

 @Around("controllerBean() && methodPointcut() ")
 public Object logTimeMethod(ProceedingJoinPoint joinPoint) throws Throwable {
   //do something
 }
This is not getting executed at all. Any thoughts would be really useful.

Thanks & Regards
Surya