#
Junjie
3 天以前 f98c8bc665875e1e7795a332d8d0e7fd9e50fda1
src/main/resources/application.yml
@@ -1,7 +1,17 @@
# 系统版本信息
app:
  version: 1.0.4.6
  version: 3.0.0.0
  version-type: dev  # prd 或 dev
  i18n:
    default-locale: zh-CN
    supported-locales:
      - zh-CN
      - en-US
    # 内置语言包读取位置:classpath:/i18n/<locale>/*.properties
    # 外置可安装语言包覆盖目录:./stock/out/@pom.build.finalName@/i18n/<locale>/*.properties
    pack-path: ./stock/out/@pom.build.finalName@/i18n
    # 外置语言包热加载检查周期(秒)
    refresh-seconds: 10
server:
  port: 9090
@@ -16,17 +26,18 @@
    hikari:
      validation-timeout: 3000
      connection-test-query: select 1
    driver-class-name: com.mysql.jdbc.Driver
    driver-class-name: com.mysql.cj.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: 127.0.0.1
    port: 6379
    database: 0
  #    password: 123456
  data:
    redis:
      host: 127.0.0.1
      port: 6379
      database: 0
      # password: 123456
  task:
    scheduling:
      pool:
@@ -40,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
@@ -66,6 +97,7 @@
  storePass: public_zhongyang_123456789
  licensePath: license.lic
  publicKeysStorePath: publicCerts.keystore
  remoteServerUrl: http://net.zoneyung.net:9999/license
deviceExecuteConfig:
  # 每个线程管控设备执行数量
@@ -85,6 +117,9 @@
llm:
  # 现已迁移到数据库表 sys_llm_route 维护(支持多API/多模型/多Key自动切换)
  # 以下仅作为数据库为空时的兼容回退配置
  # SpringAI 客户端超时配置
  connect-timeout-ms: 10000
  read-timeout-ms: 12000
  thinking: false
  base-url:
  api-key: