From 3063995c6bb6bf74e2d9de6883f67d5584271824 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 28 八月 2026 15:36:14 +0800
Subject: [PATCH] feat: 开启 Tomcat 访问日志(basedir 固定 jar 同级,记录静态资源与 API 请求耗时),便于定位客户端崩溃卡点

---
 traffic-audit-server/src/main/resources/application.yml.example |   37 ++++++++++++++++++++++++++++++++++++-
 1 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/traffic-audit-server/src/main/resources/application.yml.example b/traffic-audit-server/src/main/resources/application.yml.example
index e819dd2..880717f 100644
--- a/traffic-audit-server/src/main/resources/application.yml.example
+++ b/traffic-audit-server/src/main/resources/application.yml.example
@@ -1,13 +1,25 @@
 # 澶嶅埗涓� application.yml 骞舵浛鎹㈠崰浣嶇鍚庝娇鐢紙鐪熷疄瀵嗛挜涓嶅叆搴擄級
 server:
   port: 8090
+  tomcat:
+    basedir: .
+    accesslog:
+      enabled: true
+      directory: logs
+      prefix: access
+      suffix: .log
+      pattern: '%h %l %u %t "%r" %s %b %D'
 
 spring:
   datasource:
-    url: jdbc:mysql://localhost:3308/traffic_audit?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
+    url: jdbc:mysql://localhost:3305/traffic_audit?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
     username: root
     password: ${MYSQL_PASSWORD:root}
     driver-class-name: com.mysql.cj.jdbc.Driver
+  servlet:
+    multipart:
+      max-file-size: 100MB
+      max-request-size: 100MB
   jackson:
     date-format: yyyy-MM-dd HH:mm:ss
     time-zone: Asia/Shanghai
@@ -29,7 +41,30 @@
   secret: ${JWT_SECRET:change-me-jwt-secret}
   expiration: 86400000
 
+docs:
+  template-root: docs
+
+city-passenger:
+  template-dir: docs/鍩庡競瀹㈣繍
+
+passenger:
+  template-dir: docs/鍏矾鏃呭
+
+freight:
+  template-dir: docs/璐ц繍
+
+energy:
+  template-dir: docs/鑳借��
+
+investment:
+  template-dir: docs/鎶曡祫/妯℃澘
+
 deepseek:
   api-key: ${DEEPSEEK_API_KEY:your-deepseek-api-key}
   api-url: https://api.deepseek.com/v1/chat/completions
   model: deepseek-chat
+
+# Behavior captcha on login. Set to false to skip verification during test phase; enable before production release.
+app:
+  captcha:
+    required: false

--
Gitblit v1.9.1