From 9652eea78bf3d953109e784c6fdd59ee7eb4ae22 Mon Sep 17 00:00:00 2001
From: chen-xin-zhi <3588068430@qq.com>
Date: Thu, 8 May 2025 22:30:12 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=8E=A5=E5=8F=A3=E5=93=8D?=
=?UTF-8?q?=E5=BA=94=E8=B6=85=E6=97=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 8 ++++++++
.../java/com/greenorange/promotion/aop/TimeoutAspect.java | 2 ++
2 files changed, 10 insertions(+)
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) {