import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;
@Aspect
@Component
public class MyDemoLogginAspect {
@Before("execution(* * add*())")
public void beforeAddAccountAdvice(){
System.out.println("Executing before");
}
}
I am getting an exception of Caused by:
java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting '(' at character position 14
execution(* * add*())
I need to know why the above pointcut expression is wrong?
Note: This error is coming after execution of the main class but there is nothing wrong with the main class and the error is instead within the pointcut expression