|
|
@ -8,6 +8,7 @@ import com.xxl.job.core.context.XxlJobHelper; |
|
|
import com.xxl.job.core.handler.annotation.XxlJob; |
|
|
import com.xxl.job.core.handler.annotation.XxlJob; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.context.annotation.Scope; |
|
|
import org.springframework.context.annotation.Scope; |
|
|
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
import java.io.BufferedReader; |
|
|
import java.io.BufferedReader; |
|
|
import java.io.File; |
|
|
import java.io.File; |
|
|
@ -21,7 +22,7 @@ import java.nio.charset.StandardCharsets; |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
@Slf4j |
|
|
@Slf4j |
|
|
@Scope("prototype") |
|
|
|
|
|
|
|
|
@Component |
|
|
public class LinuxCommandUtil { |
|
|
public class LinuxCommandUtil { |
|
|
/** |
|
|
/** |
|
|
* 运行scrapy的工具类 |
|
|
* 运行scrapy的工具类 |
|
|
|