One: AOP (Aspect Oriented Programming) aspect-oriented programming.
The underlying implementation principle is the dynamic proxy of java: 1. The dynamic proxy of jdk. 2. Spring's cglib agent.
JDK's dynamic proxy requires that the object being proxied has an interface.
Code example: