From 8280c9eee52dd9fa3501305dfd4d1cab1564a73b Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期六, 20 十二月 2025 15:01:20 +0800
Subject: [PATCH] #

---
 src/main/resources/application.yml |  200 +++++++++++++++----------------------------------
 1 files changed, 62 insertions(+), 138 deletions(-)

diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index d47517a..41d4c4c 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -2,34 +2,51 @@
   port: 9090
   servlet:
     context-path: /@pom.build.finalName@
+  shutdown: graceful
 
 spring:
   application:
     name: @pom.build.finalName@
   datasource:
-    # sql-server
-    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
-    #url: jdbc:sqlserver://192.168.3.99:1433;databasename=gdasrs
-    #username: sa
-    #password: eisoft
-    url: jdbc:sqlserver://192.168.2.250:1433;databasename=jsasrs
-    username: sa
-    password: sa@123
+    hikari:
+      validation-timeout: 3000
+      connection-test-query: select 1
+    driver-class-name: com.mysql.jdbc.Driver
+    url: jdbc:mysql://127.0.0.1:3306/wcs?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
+    username: root
+    password: root
   mvc:
     static-path-pattern: /**
   redis:
-    host: localhost
+    host: 127.0.0.1
     port: 6379
     database: 0
-#    password: xltys1995
+  #    password: 123456
+  task:
+    scheduling:
+      pool:
+        size: 3
+      shutdown:
+        await-termination: true
+        await-termination-period: 30s
+    execution:
+      shutdown:
+        await-termination: true
+        await-termination-period: 30s
+  lifecycle:
+    timeout-per-shutdown-phase: 20s
 
 mybatis-plus:
   mapper-locations: classpath:mapper/*.xml
 #  global-config:
 #    field-strategy: 0
+#  configuration:
+#    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+
 
 logging:
-  path: /stock/out/@pom.build.finalName@/logs
+  file:
+    path: /stock/out/@pom.build.finalName@/logs
 
 super:
   pwd: xltys1995
@@ -37,135 +54,42 @@
 swagger:
   enable: false
 
-# 涓嬩綅鏈洪厤缃�
-wcs-slave:
-  # 鍫嗗灈鏈�1
-  crn[0]:
-    id: 1
-    ip: 192.168.6.9
-    port: 102
-    rack: 0
-    slot: 0
-    # 鍋忕Щ閲忥紝褰撳爢鍨涙満绔欑偣鍒楀彿=1鏃讹紝鍋忕Щ閲�=2
-    offset: 2
-    # 鍫嗗灈鏈哄叆搴撶珯鐐�
-    crnInStn[0]:
-      devpPlcId: ${wcs-slave.devp[0].id}
-      staNo: 5
-      row: 2
-      bay: 0
-      lev: 1
-    # 鍫嗗灈鏈哄嚭搴撶珯鐐�
-    crnOutStn[0]:
-      devpPlcId: ${wcs-slave.devp[0].id}
-      staNo: 6
-      row: 1
-      bay: 0
-      lev: 1
-    # 鍫嗗灈鏈�2
-    crn[1]:
-      id: 2
-      ip: 192.168.6.11
-      port: 102
-      rack: 0
-      slot: 0
-      # 鍋忕Щ閲忥紝褰撳爢鍨涙満绔欑偣鍒楀彿=1鏃讹紝鍋忕Щ閲�=2
-      offset: 2
-      # 鍫嗗灈鏈哄叆搴撶珯鐐�
-      crnInStn[0]:
-        devpPlcId: ${wcs-slave.devp[1].id}
-        staNo: 107
-        row: 4
-        bay: 0
-        lev: 1
-      # 鍫嗗灈鏈哄嚭搴撶珯鐐�
-      crnOutStn[0]:
-        devpPlcId: ${wcs-slave.devp[1].id}
-        staNo: 101
-        row: 3
-        bay: 0
-        lev: 1
-  # 杈撻�佺嚎
-  devp[0]:
-    id: 1
-    ip: 192.168.6.120
-    port: 102
-    rack: 0
-    slot: 1
-    # 鍏ュ簱鍙�1
-    inSta[0]:
-      staNo: 1
-      barcode: ${wcs-slave.barcode[0].id}
-    # 绌烘澘鍏ュ簱鍙�1
-    emptyInSta[0]:
-      staNo: 1
-    # 鍑哄簱鍙�1
-    outSta[0]:
-      staNo: 2
-    # 鎷f枡鍏ュ簱鍙�
-    pickSta[0]:
-      staNo: 3
-  # 杈撻�佺嚎
-  devp[1]:
-    id: 2
-    ip: 192.168.6.21
-    port: 102
-    rack: 0
-    slot: 1
-    # 鍏ュ簱鍙�1
-    inSta[0]:
-      staNo: 105
-      barcode: ${wcs-slave.barcode[1].id}
-    # 绌烘澘鍏ュ簱鍙�1
-    emptyInSta[0]:
-      staNo: 105
-    # 鍑哄簱鍙�1
-    outSta[0]:
-      staNo: 104
-    # 鎷f枡鍏ュ簱鍙�
-    pickSta[0]:
-      staNo: 104
-  # 鏉$爜鎵弿浠�
-  barcode[0]:
-    id: 1
-    ip: 192.168.6.150
-    port: 51236
-  # 鏉$爜鎵弿浠�
-  barcode[1]:
-    id: 2
-    ip: 192.168.6.151
-    port: 51236
-  # 鍙拌溅
-  car[0]:
-    id: 1
-    ip: 192.168.10.150
-    port: 51236
-  # LED1
-  led[0]:
-    id: 1
-    ip: 192.168.10.61
-    port: 5005
-    devpPlcId: ${wcs-slave.devp[0].id}
-    staArr: 2,3
-  # 纾呯О
-#  scale[0]:
-#    id: 1
-#    ip: 192.168.10.152
-#    port: 8888
+#License鐩稿叧閰嶇疆
+license:
+  subject: crnWcsDev
+  publicAlias: publicCert
+  storePass: public_zhongyang_123456789
+  licensePath: license.lic
+  publicKeysStorePath: publicCerts.keystore
 
+deviceExecuteConfig:
+  # 姣忎釜绾跨▼绠℃帶璁惧鎵ц鏁伴噺
+  threadControlCount: 10
+  liftType: lift
 
+mainProcessPlugin: FakeProcess
 
+deviceLogStorage:
+  # 璁惧鏃ュ織瀛樺偍鏂瑰紡 mysql file
+  type: file
+  # file绫诲瀷瀛樺偍鍦板潃
+  loggingPath: /stock/out/@pom.build.finalName@/deviceLogs
+  # 鏃ュ織杩囨湡鏃堕棿 鍗曚綅澶�
+  expireDays: 7
 
+llm:
+#  base-url: https://api.siliconflow.cn/v1
+#  api-key: sk-sxdtebtquwrugzrmaqqqkzdzmrgzhzmplwwuowysdasccent
+#  model: deepseek-ai/DeepSeek-V3.2
+  base-url: http://47.76.147.249:9998/e/7g7kqxxt1ei2un71
+  api-key: app-mP0O6aY5WpbfaHs7BNnjVkli
+  model: deepseek-ai/DeepSeek-V3.2
+#  base-url: http://34.2.134.223:3000/v1
+#  api-key: sk-WabrmtOezCFwVo7XvVOrO3QkmfcKG7T7jy0BaVnmQTWm5GXh
+#  model: gemini-3-pro-preview
 
-
-
-
-
-
-
-
-
-
-
-
-
+perf:
+  methodTiming:
+    enabled: false
+    thresholdMs: 50
+    sampleRate: 1.0
\ No newline at end of file

--
Gitblit v1.9.1