24282 1 éve
szülő
commit
c8ea19cfa2

+ 1 - 1
pom.xml

@@ -15,7 +15,7 @@
         <maven.compiler.target>8</maven.compiler.target>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <sd.version>2.0</sd.version>
-        <base.version>1.0.2</base.version>
+        <base.version>1.0.3</base.version>
     </properties>
 
     <modules>

+ 1 - 7
sd-framework/src/main/java/com/sd/framework/aspect/DataSourceAspect.java

@@ -4,7 +4,6 @@ import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
 import org.aspectj.lang.ProceedingJoinPoint;
 import org.aspectj.lang.annotation.Around;
 import org.aspectj.lang.annotation.Aspect;
-import org.aspectj.lang.annotation.Pointcut;
 import org.springframework.core.Ordered;
 import org.springframework.core.annotation.Order;
 import org.springframework.stereotype.Component;
@@ -14,12 +13,7 @@ import org.springframework.stereotype.Component;
 @Order(Ordered.HIGHEST_PRECEDENCE)
 public class DataSourceAspect {
 
-    @Pointcut("execution (* com.*.*.service.*.*.*(..)) || execution (* com.*.*.service.*.*(..)) || execution(* com.*.*.flow.*.*(..))")
-    public void pointcut() {
-
-    }
-
-    @Around(value = "pointcut()")
+    @Around(value = "execution (* com.*.*.service.*.*.*(..)) || execution (* com.*.*.service.*.*(..)) || execution(* com.*.*.flow.*.*(..))")
     public Object before(ProceedingJoinPoint point) throws Throwable {
         Object target = point.getTarget();
         String name = target.getClass().getName();