cl
2026-04-17 ca0d167f5059f700c11732ff3187e0913b6a7311
rsf-open-api/src/main/resources/application-dev.yml
@@ -1,23 +1,24 @@
server:
  port: 8081
  port: 8082
  servlet:
    context-path: /@pom.artifactId@
spring:
  application:
    name: @pom.artifactId@
  cloud:
    openfeign:
      circuitbreaker:
        enabled: true   # Feign 调用失败时走 Fallback,在 Feign 内统一返回错误
  mvc:
    static-path-pattern: /**
    path match:
      matching-strategy: ANT_PATH_MATCHER
  datasource:
    driver-class-name: com.mysql.cj.jdbc.Driver
#    url: jdbc:mysql://47.76.147.249:3306/rsf?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
#    username: rsf
    url: jdbc:mysql://127.0.0.1:3306/rsf_jdxaj?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
#    url: jdbc:mysql://127.0.0.1:3306/jdxajwms?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
    username: root
    url: jdbc:mysql://127.0.0.1:3306/rsf?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
    password: 34821015
#    url: jdbc:mysql://10.10.10.200:3306/rsf?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
#    password: xltys1995
    password: 12345
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      initial-size: 5
@@ -48,10 +49,31 @@
      maxRequestSize: 100MB
redis:
  host: 127.0.0.1
  password: xltys1995
  password:
  port: 6379
  timeout: 5000
  index: 15
# 电视机 Redis:与 zy-monitor-admin 使用同一 database(默认 0),否则读不到报警
tv-monitor:
  redis:
    database: 0
  # 非空时要求请求头 X-Rcs-Token 与本值一致
  rcs-callback-token: ""
  # 定时 GET RCS 站点接口 → 写入与 zy-monitor-admin 相同 Redis → 电视机 WebSocket 沿用既有推送
  rcs-station-poll:
    # enabled: false
    enabled: true
    cron: "0/5 * * * * ?"
    # task-no-poll-url: "http://127.0.0.1:8877/cv/station/getTaskNo?stationId=1007"
    task-no-poll-url: "http://127.0.0.1:8877/cv/station/getTaskNo"
    task-no-poll-use-post: true
    task-no-station-id: "1007"
    # POST body: {"staNo": error-station-id},与 RCS 文档一致
    error-poll-url: "http://127.0.0.1:8877/cv/station/getError"
    error-poll-use-post: true
    error-station-id: "1010"
    enrich-task-from-wms: true
#平台接口信息配置(如:ERP, QMS, WCS等)
platform:
@@ -63,6 +85,15 @@
    port: 8088
  wms:
    #链接
    host: http://10.10.10.157
    host: http://127.0.0.1
    #端口
    port: 8080
    port: 8086
  erp:
    #链接
    host: http://127.0.0.1
    #端口
    port: 3741
http-audit:
  enabled: true
  datasource: primary