SZH
2022-09-16 6f3433551682ed596fe2c75ce0eb4181e550f053
修改配置文件
已修改3个文件
14 ■■■■ 文件已修改
goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/schedule/KeepAliveRobot.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
safePlatfrom-out-web/src/main/resources/config/application-dev.yaml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
safePlatfrom-out-web/src/main/resources/config/application.yaml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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