1 2 3 4 5 6 7 8 9 10 11
import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; @Aspect public class FirstAspect { @Before("execution(@MarkerOne * *(..))") public void beforeAdvice(JoinPoint joinPoint){ System.out.println("FirstAspect: " + joinPoint); } }