获取spring代理对象出现Cannot find current proxy问题 Published on Aug 28, 2023 in 随笔 with 0 comment 报错原因 因为Spring默认不允许获取代理对象,如果使用需要手动开启 1、引入依赖 ```xml org.aspectj aspectjweaver ``` 2、开启AOP获取(在SpringBoot启动类或者配置类上加) @EnableAspectJAutoProxy(exposeProxy = true) 本文由 admin 创作,采用 知识共享署名4.0 国际许可协议进行许可。本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名。