October 2017
Intermediate to advanced
396 pages
10h 2m
English
Let's see the use of the @AfterReturning annotation:
//After transfer service
@AfterReturning("execution(* com.packt.patterninspring.chapter6. bankapp.service.TransferService.transfer(..))")
public void success(){
System.out.println("bank successfully transferred amount");
}
Now you have seen the after returning advice, let's move to another type advice in the Spring AOP.
Read now
Unlock full access