Aspect does not execute problem

I read the article Aspect Principles and then combined it with the usage.


Spring provides two ways to generate proxy objects: JDKProxy and Cglib. The specific method used to generate proxy objects is determined by AopProxyFactory based on the configuration of the AdvisedSupport object. The default strategy is to use JDK dynamic proxy technology if the target class is an interface, otherwise use Cglib to generate the proxy.

Since ibatis is used in the project, forced use of cglib is not supported. Therefore, only jdkProxy can be used. When using it, it must be called through the interface

Guess you like

Origin blog.csdn.net/sunnyfirefox/article/details/52447765