@@ -19,6 +19,7 @@ import com.tuoheng.common.core.utils.HttpUtils; | |||
import com.tuoheng.common.core.utils.JacksonUtil; | |||
import com.tuoheng.common.core.utils.JsonResult; | |||
import com.tuoheng.common.core.utils.StringUtils; | |||
import com.xxl.job.core.handler.annotation.XxlJob; | |||
import lombok.extern.slf4j.Slf4j; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.stereotype.Component; | |||
@@ -43,8 +44,7 @@ public class AirportTask { | |||
@Autowired | |||
private TenantMapper tenantMapper; | |||
// @Scheduled(fixedRate = 60000) | |||
// @XxlJob("airportTaskHandler") | |||
@XxlJob("freewayAirportTaskHandler") | |||
public void airportTaskHandler() { | |||
//查询当前时间正负1分钟的时间跨度,xxljob执行频率为1分钟1次 | |||
long start = new Date().getTime() - 1 * 60000L; |
@@ -166,10 +166,10 @@ xxl: | |||
addresses: http://192.168.11.11:8110/xxl-job-admin | |||
accessToken: tuoheng | |||
executor: | |||
appname: xxl-job-executor-feishou | |||
appname: xxl-job-executor-freeway | |||
address: | |||
ip: | |||
# 多个后台,端口号不能相同 | |||
port: 9888 | |||
port: 9997 | |||
logpath: /data/java/logs/xxl-job/jobhandler | |||
logretentiondays: 15 |
@@ -164,13 +164,13 @@ xxl: | |||
enable: true | |||
job: | |||
admin: | |||
addresses: http://172.16.1.31:8110/xxl-job-admin | |||
addresses: https://xxl-job.t-aaron.com/xxl-job-admin/ | |||
accessToken: tuoheng | |||
executor: | |||
appname: xxl-job-executor-feishou | |||
appname: xxl-job-executor-freeway | |||
address: | |||
ip: | |||
# 多个后台,端口号不能相同 | |||
port: 9888 | |||
port: 9997 | |||
logpath: /data/java/logs/xxl-job/jobhandler | |||
logretentiondays: 15 |
@@ -167,10 +167,10 @@ xxl: | |||
addresses: http://172.15.1.11:8110/xxl-job-admin | |||
accessToken: tuoheng | |||
executor: | |||
appname: xxl-job-executor-feishou | |||
appname: xxl-job-executor-freeway | |||
address: | |||
ip: | |||
# 多个后台,端口号不能相同 | |||
port: 9888 | |||
port: 9997 | |||
logpath: /data/java/logs/xxl-job/jobhandler | |||
logretentiondays: 15 |