zhizhijie
2026-09-14 d1cfd849c6a61800dcd86ffb45f80882ae20b2e7
traffic-audit-server/src/main/resources/application.yml.example
@@ -1,6 +1,16 @@
# 复制为 application.yml 并替换占位符后使用(真实密钥不入库)
server:
  port: 8090
  tomcat:
    basedir: .
    threads:
      max: 500
    accesslog:
      enabled: true
      directory: logs
      prefix: access
      suffix: .log
      pattern: '%h %l %u %t "%r" %s %b %D'
spring:
  datasource:
@@ -21,7 +31,8 @@
  type-aliases-package: com.trafficaudit
  configuration:
    map-underscore-to-camel-case: true
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    # 显式指定 Slf4j:MyBatis-Plus 默认 StdOutImpl 会把整行数据(含企业名/电话)打进日志
    log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  global-config:
    db-config:
      id-type: auto
@@ -55,3 +66,11 @@
  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:
  cors:
    # 允许跨域访问接口的来源(逗号分隔)
    allowed-origins: http://localhost:8080,http://127.0.0.1:8080
  captcha:
    required: false