- Building Microservices with Spring
- Dinesh Rajput Rajesh R V
- 65字
- 2021-07-02 14:54:15
Advice type - Before
Let's see the following figure for before advice. This advice executes the before the target method:
As you can see in figure, before advice is executed first and then it calls the Target method. As we know that Spring AOP is proxy-based. So a Proxy object is created of target class. It is based on Proxy design pattern and Decorator Design Pattern.