From 3317da8a935b997f23036334e2ff1e10e3cc6a3a Mon Sep 17 00:00:00 2001 From: wanghui Date: Tue, 25 Apr 2023 19:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=85=A5xxl-job=EF=BC=8C=E9=A3=9E?= =?UTF-8?q?=E6=A1=A8=E8=A7=A3=E6=9E=90=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/qniao/zsh/infrastructure/util/LinuxCommandUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/qniao/zsh/infrastructure/util/LinuxCommandUtil.java b/src/main/java/com/qniao/zsh/infrastructure/util/LinuxCommandUtil.java index a5364fc..11918e9 100644 --- a/src/main/java/com/qniao/zsh/infrastructure/util/LinuxCommandUtil.java +++ b/src/main/java/com/qniao/zsh/infrastructure/util/LinuxCommandUtil.java @@ -8,6 +8,7 @@ import com.xxl.job.core.context.XxlJobHelper; import com.xxl.job.core.handler.annotation.XxlJob; import lombok.extern.slf4j.Slf4j; import org.springframework.context.annotation.Scope; +import org.springframework.stereotype.Component; import java.io.BufferedReader; import java.io.File; @@ -21,7 +22,7 @@ import java.nio.charset.StandardCharsets; */ @Slf4j -@Scope("prototype") +@Component public class LinuxCommandUtil { /** * 运行scrapy的工具类