|
|
|
|
@ -25,6 +25,9 @@ public class XxlJobConfig {
|
|
|
|
|
@Value("${xxl.job.admin.timeout}")
|
|
|
|
|
private int timeout;
|
|
|
|
|
|
|
|
|
|
@Value("${xxl.job.executor.enabled}")
|
|
|
|
|
private Boolean enabled;
|
|
|
|
|
|
|
|
|
|
@Value("${xxl.job.executor.appname}")
|
|
|
|
|
private String appname;
|
|
|
|
|
|
|
|
|
|
@ -49,12 +52,13 @@ public class XxlJobConfig {
|
|
|
|
|
logger.info(">>>>>>>>>>> xxl-job config init.");
|
|
|
|
|
XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();
|
|
|
|
|
xxlJobSpringExecutor.setAdminAddresses(adminAddresses);
|
|
|
|
|
xxlJobSpringExecutor.setAccessToken(accessToken);
|
|
|
|
|
xxlJobSpringExecutor.setTimeout(timeout);
|
|
|
|
|
xxlJobSpringExecutor.setEnabled(enabled);
|
|
|
|
|
xxlJobSpringExecutor.setAppname(appname);
|
|
|
|
|
xxlJobSpringExecutor.setAddress(address);
|
|
|
|
|
xxlJobSpringExecutor.setIp(ip);
|
|
|
|
|
xxlJobSpringExecutor.setPort(port);
|
|
|
|
|
xxlJobSpringExecutor.setAccessToken(accessToken);
|
|
|
|
|
xxlJobSpringExecutor.setTimeout(timeout);
|
|
|
|
|
xxlJobSpringExecutor.setLogPath(logPath);
|
|
|
|
|
xxlJobSpringExecutor.setLogRetentionDays(logRetentionDays);
|
|
|
|
|
|
|
|
|
|
|