报错内容如下:
java.lang.IllegalStateException: Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available.
很多人说不到点子上,什么xml配置,例如
<aop:aspectj-autoproxy proxy-target-class="true"expose-proxy="true"/>
都2022年了,人均SpringBoot了,正确的做法应该是在启动类上加一个注解
@EnableAspectJAutoProxy(exposeProxy = true)