From 6ed7a25819bfe2b7a7c70df45f846ee53c87378d Mon Sep 17 00:00:00 2001 From: zq Date: Mon, 5 Jan 2026 16:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=87=E9=9D=A2=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xzzn/framework/config/ApplicationConfig.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ems-framework/src/main/java/com/xzzn/framework/config/ApplicationConfig.java b/ems-framework/src/main/java/com/xzzn/framework/config/ApplicationConfig.java index 7202f41..5248c05 100644 --- a/ems-framework/src/main/java/com/xzzn/framework/config/ApplicationConfig.java +++ b/ems-framework/src/main/java/com/xzzn/framework/config/ApplicationConfig.java @@ -13,8 +13,9 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy; * @author xzzn */ @Configuration -// 表示通过aop框架暴露该代理对象,AopContext能够访问 -@EnableAspectJAutoProxy(exposeProxy = true) +// proxyTargetClass = true表示使用cglib代理,false表示jdk动态代理 +// exposeProxy = true表示通过aop框架暴露该代理对象,AopContext能够访问 +@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true) // 指定要扫描的Mapper类的包的路径 @MapperScan("com.xzzn.**.mapper") public class ApplicationConfig