From 7fcdc0caf1145ec8e96a858441bef95fe884fa7a Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Thu, 31 Aug 2023 16:13:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=AE=9A=E6=97=B6=E5=99=A8?= =?UTF-8?q?=20=E5=90=8C=E6=AD=A5=E9=A1=B9=E7=9B=AE=E5=BD=92=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java | 2 -- .../com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java index 2617054..43d2f0a 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java @@ -205,8 +205,6 @@ public class AppIrsManage { RestTemplate restTemplate = new RestTemplate(); ResponseEntity forEntity = restTemplate.getForEntity(url, String.class); - log.info("查询应用目录 : {}", JSON.toJSONString(forEntity)); - if (Objects.nonNull(forEntity.getBody()) && Objects.nonNull(forEntity.getBody())) { JSONObject body = JSON.parseObject(forEntity.getBody()); if (Objects.isNull(body)) { diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java index a7b9116..c3da502 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java @@ -26,7 +26,7 @@ import java.net.UnknownHostException; @RequiredArgsConstructor public class SynProjectCollectionTask { - @Value("${task.host}") + @Value("${hostname}") public String HOST; @Value("${spring.profiles.active}") @@ -43,7 +43,7 @@ public class SynProjectCollectionTask { * 定时同步前置机数据 每天1点开始执行一次 * */ - @Scheduled(cron = "0 10 16 * * ?") + @Scheduled(cron = "0 0 1 * * ?") public void doTask() throws UnknownHostException { if (!HOST.equals(InetAddress.getLocalHost().getHostName())) { log.info("定时器没开启或者host不对! {}:{}",