Here are the steps to run basic AOP samples that will explain the AfterAdvice, BeforeAdvice, AroundAdvice, and ExceptionAdvice concepts.
Create a Spring Maven project in STS and add the
AOPBeforeMethod.java and attach BeforeAdvice to
BookService.java as configured in the
config file, you can understand that we are creating a bean for the BeforeMethod class and proxy bean for BookService. The
target tag specifies the bean that needs to be applied with the Aspect. The