From 4f2c9b54c8d0f358f3b7c6821f091a493b24e006 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 02 十二月 2025 11:16:53 +0800
Subject: [PATCH] 配置新增以及bug修改

---
 ycl-server/src/main/resources/application-dev.yml |   85 ++++++++++++++++++++++++++++++------------
 1 files changed, 61 insertions(+), 24 deletions(-)

diff --git a/ycl-server/src/main/resources/application-dev.yml b/ycl-server/src/main/resources/application-dev.yml
index b0129c1..226682f 100644
--- a/ycl-server/src/main/resources/application-dev.yml
+++ b/ycl-server/src/main/resources/application-dev.yml
@@ -1,3 +1,23 @@
+# 寮�鍙戠幆澧冮厤缃�
+server:
+  # 鏈嶅姟鍣ㄧ殑HTTP绔彛锛岄粯璁や负8080
+  port: 8085
+  servlet:
+    # 搴旂敤鐨勮闂矾寰�
+    context-path: /
+  tomcat:
+    # tomcat鐨刄RI缂栫爜
+    uri-encoding: UTF-8
+    # 杩炴帴鏁版弧鍚庣殑鎺掗槦鏁帮紝榛樿涓�100
+    accept-count: 1000
+    threads:
+      # tomcat鏈�澶х嚎绋嬫暟锛岄粯璁や负200
+      max: 800
+      # Tomcat鍚姩鍒濆鍖栫殑绾跨▼鏁帮紝榛樿鍊�10
+      min-spare: 100
+
+
+
 # 椤圭洰鐩稿叧閰嶇疆
 platform:
   # 鍚嶇О
@@ -14,34 +34,29 @@
   captchaType: math
 
 
-# 寮�鍙戠幆澧冮厤缃�
-server:
-  # 鏈嶅姟鍣ㄧ殑HTTP绔彛锛岄粯璁や负8080
-  port: 8080
-  servlet:
-    # 搴旂敤鐨勮闂矾寰�
-    context-path: /
-  tomcat:
-    # tomcat鐨刄RI缂栫爜
-    uri-encoding: UTF-8
-    # 杩炴帴鏁版弧鍚庣殑鎺掗槦鏁帮紝榛樿涓�100
-    accept-count: 1000
-    threads:
-      # tomcat鏈�澶х嚎绋嬫暟锛岄粯璁や负200
-      max: 800
-      # Tomcat鍚姩鍒濆鍖栫殑绾跨▼鏁帮紝榛樿鍊�10
-      min-spare: 100
-
-
 spring:
   # 鏁版嵁婧愰厤缃�
   datasource:
-    url: jdbc:mysql://101.35.247.188/zgyw?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true&allowPublicKeyRetrieval=true
+    #    url: jdbc:mysql://101.35.247.188:3306/zgyw?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true&allowPublicKeyRetrieval=true
+#    username: root
+#    password: ycl@202466
+    url: jdbc:mysql://localhost:3306/zgyw?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowMultiQueries=true&allowPublicKeyRetrieval=true&connectTimeout=60000&socketTimeout=120000&keepAlive=true&keepAliveInterval=60000
     username: root
-    password: ycl@202466
+    password: 123456
     type: com.alibaba.druid.pool.DruidDataSource
     driver-class-name: com.mysql.cj.jdbc.Driver
+    druid:
+      initial-size: 5             # 鍒濆鍖栬繛鎺ユ暟
+      min-idle: 5                 # 鏈�灏忕┖闂茶繛鎺ユ暟
+      max-active: 20              # 鏈�澶ф椿璺冭繛鎺ユ暟
+      max-wait: 60000             # 鑾峰彇杩炴帴鐨勬渶澶х瓑寰呮椂闂�(ms)
 
+      time-between-eviction-runs-millis: 60000
+      min-evictable-idle-time-millis: 300000
+      validation-query: SELECT 1
+      test-while-idle: true
+      test-on-borrow: true
+      test-on-return: false
   jpa:
     show-sql: true
     generate-ddl: true
@@ -76,11 +91,12 @@
 spring.data:
   redis:
     # 鍦板潃
-    #host: 42.193.1.25
+#    host: 42.193.1.25
     host: 127.0.0.1
     # 绔彛锛岄粯璁や负6379
     port: 6379
-    #password: ycl2018
+#    password: ycl2018
+#    password: 123456
     password:
     # 鏁版嵁搴撶储寮�
     database: 0
@@ -125,7 +141,9 @@
 spring:
   data:
     mongodb:
-      uri: mongodb://root1:yunwei%402024@192.168.3.88:27017/zgyw?authSource=admin
+#      uri: mongodb://root1:yunwei%402024@192.168.3.88:27017/zgyw?authSource=admin
+       uri: mongodb://localhost:27017/zgyw
+#       auto-index-creation: true
 
 # 鎷夊彇鏁版嵁璇锋眰閰嶇疆
 request:
@@ -140,6 +158,25 @@
   apikey: 72fcfd6825304f7fa0453134de620f3a
   accesskey: fc9503a521544e76a8e69b912a2f177bc6362b19
 
+HK:
+  userName: admin
+  password: zg@2024dx
+  host: 51.92.65.49
+  appKey: 29555942
+  appSecret: t9U7tCplCyYHzQPPL7cH
+  carCode: gb
+  faceCode: gb
+  carProvinceCode: 2_car
+  faceProvinceCode: 3_face
+
+DH:
+  userName: admin
+  password: zg@2024dx
+
+YS:
+  userName: admin
+  password: zg2024dx
+
 # gb281瑙嗛缃戝叧鍦板潃锛岀敤浜庤幏鍙杛tsp鏍煎紡鐨勬祦鍦板潃
 rtsp:
   server: http://192.168.3.88:7788

--
Gitblit v1.8.0