MindIQ Academy
1 / 100
Spring AOP

Question 1

A Spring Boot 3 application centralizes logging for order operations. The pointcut is intended to select method executions in service packages. What is the most accurate Spring AOP interpretation?

@Aspect
@Component
class OrderTraceAspect {
    @Before("execution(* com.acme..service..*(..))")
    void before(JoinPoint jp) {
        System.out.println(jp.getSignature());
    }
}

@Service
class OrderService {
    public void process(String id) { }
}