@Aspect @Component public class as { @Pointcut("execution(public * com.example.demo.GirlsController.*(..))") public void log(){ } @Before("log()") public void c(){ } @Before("execution(public * com.example.demo.GirlsController.del(..))") public void b(){ } }
@AfterReturning(returning = "object",pointcut = "log()") public void d(Object object){ }