We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35fa3db commit fe0371bCopy full SHA for fe0371b
zlt-commons/zlt-common-core/src/main/java/com/central/common/lock/LockAspect.java
@@ -7,6 +7,7 @@
7
import org.aspectj.lang.annotation.Around;
8
import org.aspectj.lang.annotation.Aspect;
9
import org.aspectj.lang.reflect.MethodSignature;
10
+import org.springframework.beans.factory.annotation.Autowired;
11
import org.springframework.core.DefaultParameterNameDiscoverer;
12
import org.springframework.expression.EvaluationContext;
13
import org.springframework.expression.Expression;
@@ -25,12 +26,9 @@
25
26
@Slf4j
27
@Aspect
28
public class LockAspect {
29
+ @Autowired(required = false)
30
private DistributedLock locker;
31
- public LockAspect(DistributedLock locker) {
- this.locker = locker;
32
- }
33
-
34
/**
35
* 用于SpEL表达式解析.
36
*/
0 commit comments