Browse Source

AopContext

shiqian 4 years ago
parent
commit
c8776ac70c

+ 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();
+    }
+}