Spring Boot - Aspect-Oriented Programming
Given the following code snippet, what will be printed when
service.process() is called?@Aspect
@Component
public class LoggingAspect {
@Before("execution(* com.example.service.Service.process(..))")
public void beforeProcess() {
System.out.println("Before process");
}
}
@Service
public class Service {
public void process() {
System.out.println("Processing");
}
}