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 |   35 ++++++++++++++++++++++++++++-------
 1 files changed, 28 insertions(+), 7 deletions(-)

diff --git a/ycl-server/src/main/resources/application-dev.yml b/ycl-server/src/main/resources/application-dev.yml
index cdc2747..226682f 100644
--- a/ycl-server/src/main/resources/application-dev.yml
+++ b/ycl-server/src/main/resources/application-dev.yml
@@ -37,12 +37,26 @@
 spring:
   # 鏁版嵁婧愰厤缃�
   datasource:
-    url: jdbc:mysql://localhost:3306/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: 1234
+    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
@@ -77,12 +91,13 @@
 spring.data:
   redis:
     # 鍦板潃
-    host: 42.193.1.25
-#    host: 127.0.0.1
+#    host: 42.193.1.25
+    host: 127.0.0.1
     # 绔彛锛岄粯璁や负6379
     port: 6379
-    password: ycl2018
-#    password:
+#    password: ycl2018
+#    password: 123456
+    password:
     # 鏁版嵁搴撶储寮�
     database: 0
     # 瀵嗙爜(濡傛病鏈夊瘑鐮佽娉ㄩ噴鎺�)
@@ -126,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:
@@ -147,6 +164,10 @@
   host: 51.92.65.49
   appKey: 29555942
   appSecret: t9U7tCplCyYHzQPPL7cH
+  carCode: gb
+  faceCode: gb
+  carProvinceCode: 2_car
+  faceProvinceCode: 3_face
 
 DH:
   userName: admin

--
Gitblit v1.8.0