June 2018
Intermediate to advanced
408 pages
11h 23m
English
In the preceding section, we learned different terminologies of AOP and how to define the pointcut expression. In this section, we will learn about the different types of advice in Spring AOP:
@Pointcut("execution(* com.packt.springhighperformance.ch03.bankingapp.service.TransferService.transfer(..))")public void transfer() {}@Before("transfer()")public void beforeTransfer(JoinPoint joinPoint){ LOGGGER.info("validate account balance before transferring amount");}
Read now
Unlock full access