goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/schedule/KeepAliveRobot.java
@@ -1,6 +1,7 @@ package com.gkhy.safePlatform.targetDuty.schedule; import com.gkhy.safePlatform.targetDuty.service.TargetTypeService; import com.gkhy.safePlatform.targetDuty.service.baseService.TargetTypeBaseService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.scheduling.annotation.EnableScheduling; @@ -14,14 +15,13 @@ public class KeepAliveRobot { @Autowired private TargetTypeService targetTypeService; private TargetTypeBaseService targetTypeBaseService; // 30m @Scheduled(cron = "0 0/30 * * * ?") public void keepAlive(){ // // targetTypeService.getById(-1L); targetTypeBaseService.getById(1L); } } safePlatfrom-out-web/src/main/resources/config/application-dev.yaml
@@ -30,6 +30,12 @@ username: gkhy_dev_out_team password: Adsdf675T6AC7yga type: com.alibaba.druid.pool.DruidDataSource equipment: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://192.168.0.52:3306/safeplatform.equipment.dev?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true username: gkhy_dev_out_team password: Adsdf675T6AC7yga type: com.alibaba.druid.pool.DruidDataSource redis: host: 192.168.0.52 port: 6379 safePlatfrom-out-web/src/main/resources/config/application.yaml
@@ -2,7 +2,7 @@ application: name: safeplatform-out profiles: active: guotai-uat active: dev # active: guotai-demo #### test uat guotai-demo guotai-uat # active: test