Spring Boot - Aspect-Oriented Programming
Given this
@Around advice snippet, what will be the output if the target method returns "Hello"?
@Around("execution(* com.example.service.*.*(..))")
public Object log(ProceedingJoinPoint pjp) throws Throwable {
System.out.println("Before");
Object result = pjp.proceed();
System.out.println("After");
return result + " World";
}