Junjie
2026-04-06 0a9c9bf4fa908d9d0bbdd910b70fcd0650e0df1d
src/main/resources/application.yml
@@ -1,7 +1,7 @@
# 系统版本信息
app:
  version: 3.0.0.0
  version-type: dev  # prd 或 dev
  version: 3.0.0.1
  version-type: prd  # prd 或 dev
  i18n:
    default-locale: zh-CN
    supported-locales:
@@ -51,6 +51,26 @@
        await-termination-period: 30s
  lifecycle:
    timeout-per-shutdown-phase: 20s
  ai:
    mcp:
      server:
        base-url: "${app.ai.mcp.server.public-base-url:http://127.0.0.1:${server.port:9090}${server.servlet.context-path:}}"
        name: wcs-mcp
        version: 1.0.0
        protocol: STREAMABLE
        type: SYNC
        sse-endpoint: /ai/mcp/sse
        sse-message-endpoint: /ai/mcp/message
        streamable-http:
          mcp-endpoint: /ai/mcp
        instructions: 提供 WCS 设备状态、任务、日志、配置和主流程伪代码查询能力
        annotation-scanner:
          enabled: false
        capabilities:
          tool: true
          resource: false
          prompt: false
          completion: false
mybatis-plus:
  mapper-locations: classpath:mapper/*.xml
@@ -94,9 +114,29 @@
  # 日志过期时间 单位天
  expireDays: 7
devicePingStorage:
  enabled: true
  # 秒级设备网络探测日志存储地址
  loggingPath: ./stock/out/@pom.build.finalName@/devicePingLogs
  # 日志过期时间 单位天
  expireDays: 7
  # 采样周期(毫秒)
  intervalMs: 1000
  # 单次探测超时(毫秒)
  timeoutMs: 3000
  # 每个样本内连续探测次数,用于直接得到 min/avg/max 三个指标
  probeCount: 3
  # ping 数据包大小(字节),< 0 时沿用系统默认;Windows 对应 -l,macOS/Linux 对应 -s
  packetSize: 2048
  # 并行探测线程数
  maxParallel: 8
llm:
  # 现已迁移到数据库表 sys_llm_route 维护(支持多API/多模型/多Key自动切换)
  # 以下仅作为数据库为空时的兼容回退配置
  # SpringAI 客户端超时配置
  connect-timeout-ms: 10000
  read-timeout-ms: 120000
  thinking: false
  base-url:
  api-key:
@@ -107,3 +147,12 @@
    enabled: false
    thresholdMs: 50
    sampleRate: 1.0
station:
  outbound:
    # 出库命令入设备执行链路后,等待设备状态回显任务号的超时时间
    pending-discover-timeout-seconds: 60
    # 已存在活动路由会话时,继续保持 pending 的保护时间
    pending-session-protect-seconds: 90
    # 最近已经成功写过同源站 MOVE 命令时,继续保持 pending 的保护时间
    recent-dispatch-protect-seconds: 60