瀏覽代碼

fix: 配置文件修改

Eureka 8 月之前
父節點
當前提交
87e8b3ede3
共有 1 個文件被更改,包括 17 次插入22 次删除
  1. 17 22
      taais-admin/src/main/resources/application-dev.yml

+ 17 - 22
taais-admin/src/main/resources/application-dev.yml

@@ -1,29 +1,10 @@
 server:
-  video_stable_start_url: http://localhost:11002/video_stable
-  video_stable_stop_url: http://localhost:11002/video_stable_stop
-  to_infrared_stop_url: http://localhost:11002/to_infrared_stop
-  track_sequence_stop_url: http://localhost:11003/track_sequence_stop
-  target_detection_stop_url: http://localhost:11003/target_detection_stop
-
+  video_stable_start_url: http://localhost:11001/video_stable
+  video_stable_stop_url: http://localhost:11001/video_stable_stop
 # 数据源配置
 spring:
   datasource:
     type: com.zaxxer.hikari.HikariDataSource
-    hikari:
-      # 最大连接池数量
-      maximum-pool-size: 4
-      # 最小空闲线程数量
-      minimum-idle: 2
-      # 配置获取连接等待超时的时间
-      connectionTimeout: 300000
-      # 校验超时时间
-      validationTimeout: 50000
-      # 空闲连接存活最大时间,默认10分钟
-      idleTimeout: 6000000
-      # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
-      maxLifetime: 1800000
-      # 多久检查一次连接的活性
-      keepaliveTime: 30000
 mybatis-flex:
   # sql审计
   audit_enable: true
@@ -42,10 +23,24 @@ mybatis-flex:
       #      password: Root@369
       #postgresql数据库
       driver-class-name: org.postgresql.Driver
-#      url: jdbc:postgresql://localhost:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
+      #      url: jdbc:postgresql://localhost:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
       url: jdbc:postgresql://110.41.34.83:5432/taais?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
       username: postgres
       password: P3x0LG8jzyHRX59l
+      # 最大连接池数量
+      maximum-pool-size: 2
+      # 最小空闲线程数量
+      minimum-idle: 2
+      # 配置获取连接等待超时的时间
+      connectionTimeout: 30000
+      # 校验超时时间
+      validationTimeout: 5000
+      # 空闲连接存活最大时间,默认10分钟
+      idleTimeout: 60000
+      # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
+      maxLifetime: 60000
+      # 多久检查一次连接的活性
+      keepaliveTime: 30000
 
 #    # 数据源-2
 #    ds2: