修改切面代理配置

This commit is contained in:
zq
2026-01-05 16:25:46 +08:00
parent dbdf1a5a61
commit 6ed7a25819

View File

@ -13,8 +13,9 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
* @author xzzn * @author xzzn
*/ */
@Configuration @Configuration
// 表示通过aop框架暴露该代理对象,AopContext能够访问 // proxyTargetClass = true表示使用cglib代理false表示jdk动态代理
@EnableAspectJAutoProxy(exposeProxy = true) // exposeProxy = true表示通过aop框架暴露该代理对象,AopContext能够访问
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
// 指定要扫描的Mapper类的包的路径 // 指定要扫描的Mapper类的包的路径
@MapperScan("com.xzzn.**.mapper") @MapperScan("com.xzzn.**.mapper")
public class ApplicationConfig public class ApplicationConfig