shiqian 4 سال پیش
والد
کامیت
c8776ac70c
1فایلهای تغییر یافته به همراه15 افزوده شده و 0 حذف شده
  1. 15 0
      boman-common/boman-common-core/src/main/java/com/boman/common/core/utils/aop/ProxyUtils.java

+ 15 - 0
boman-common/boman-common-core/src/main/java/com/boman/common/core/utils/aop/ProxyUtils.java

@@ -0,0 +1,15 @@
+package com.boman.common.core.utils.aop;
+
+import org.springframework.aop.framework.AopContext;
+
+/**
+ * @author shiqian
+ * @date 2021年06月01日 14:19
+ **/
+public class ProxyUtils {
+
+
+    public static <T> T proxy() {
+        return (T) AopContext.currentProxy();
+    }
+}