Browse Source

修改xxljob端口;机场定时任务修改为机场

tags/v1.1.0^2
wanghaoran 1 year ago
parent
commit
02bfd8d7a6
5 changed files with 7 additions and 5 deletions
  1. +3
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/task/ScheduledTask.java
  2. +1
    -1
      tuoheng-admin/src/main/resources/application-dev.yml
  3. +1
    -1
      tuoheng-admin/src/main/resources/application-local.yml
  4. +1
    -1
      tuoheng-admin/src/main/resources/application-prod.yml
  5. +1
    -1
      tuoheng-admin/src/main/resources/application-test.yml

+ 3
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/task/ScheduledTask.java View File

import com.tuoheng.admin.service.IThInspectionService; import com.tuoheng.admin.service.IThInspectionService;
import com.tuoheng.common.utils.JsonResult; import com.tuoheng.common.utils.JsonResult;
import com.tuoheng.common.utils.StringUtils; import com.tuoheng.common.utils.StringUtils;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled; import org.springframework.scheduling.annotation.Scheduled;
private final static SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); private final static SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");




@Scheduled(fixedRate = 1000)
// @Scheduled(fixedRate = 1000)
@XxlJob("lcAirportTaskHandler")
public void scheduledTask() { public void scheduledTask() {


log.info("执行定时执行飞行任务:" + LocalDateTime.now()); log.info("执行定时执行飞行任务:" + LocalDateTime.now());

+ 1
- 1
tuoheng-admin/src/main/resources/application-dev.yml View File

address: address:
ip: ip:
# 多个后台,端口号不能相同 # 多个后台,端口号不能相同
port: 9999
port: 9998
logpath: /data/java/logs/xxl-job/jobhandler logpath: /data/java/logs/xxl-job/jobhandler
logretentiondays: 15 logretentiondays: 15

+ 1
- 1
tuoheng-admin/src/main/resources/application-local.yml View File

address: address:
ip: ip:
# 多个后台,端口号不能相同 # 多个后台,端口号不能相同
port: 9999
port: 9998
logpath: /data/java/logs/xxl-job/jobhandler logpath: /data/java/logs/xxl-job/jobhandler
logretentiondays: 15 logretentiondays: 15

+ 1
- 1
tuoheng-admin/src/main/resources/application-prod.yml View File

address: address:
ip: ip:
# 多个后台,端口号不能相同 # 多个后台,端口号不能相同
port: 9999
port: 9998
logpath: /data/java/logs/xxl-job/jobhandler logpath: /data/java/logs/xxl-job/jobhandler
logretentiondays: 15 logretentiondays: 15

+ 1
- 1
tuoheng-admin/src/main/resources/application-test.yml View File

address: address:
ip: ip:
# 多个后台,端口号不能相同 # 多个后台,端口号不能相同
port: 9999
port: 9998
logpath: /data/java/logs/xxl-job/jobhandler logpath: /data/java/logs/xxl-job/jobhandler
logretentiondays: 15 logretentiondays: 15

Loading…
Cancel
Save