diff --git a/pom.xml b/pom.xml index 62ccb78..0549a2b 100644 --- a/pom.xml +++ b/pom.xml @@ -194,6 +194,14 @@ 1.2.62 + + + org.springframework.boot + spring-boot-configuration-processor + true + + + diff --git a/src/main/java/com/greenorange/promotion/aop/TimeoutAspect.java b/src/main/java/com/greenorange/promotion/aop/TimeoutAspect.java index f57f286..7fd5fd6 100644 --- a/src/main/java/com/greenorange/promotion/aop/TimeoutAspect.java +++ b/src/main/java/com/greenorange/promotion/aop/TimeoutAspect.java @@ -4,6 +4,7 @@ import com.greenorange.promotion.annotation.Timeout; import com.greenorange.promotion.common.ErrorCode; import com.greenorange.promotion.exception.BusinessException; import com.greenorange.promotion.exception.ThrowUtils; +import lombok.NoArgsConstructor; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.aspectj.lang.annotation.Pointcut; @@ -21,6 +22,7 @@ public class TimeoutAspect { private final ExecutorService executorService; + // 构造器注入线程池 @Autowired public TimeoutAspect(ExecutorService executorService) {