标签:contex and 表示 find ati pre thread context ISE
Cannot find current proxy: Set ‘exposeProxy‘ property on Advised to ‘true‘ to make it available, and ensure that AopContext.currentProxy() is invoked in the same thread as the AOP invocation context.
在spring boot 的启动类上加上注解: @EnableAspectJAutoProxy(proxyTargetClass=true,exposeProxy=true) 也可以
@EnableAspectJAutoProxy(proxyTargetClass=false,exposeProxy=true)
proxyTargetClass=false 表示用jdk动态代理 为true 表示 cglib动态代理
ensure that AopContext.currentProxy() is invoked in the same thread as the AOP invocation context
标签:contex and 表示 find ati pre thread context ISE
原文地址:https://www.cnblogs.com/jingzhi-sksk/p/13964726.html