刘光辉
8 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
spring:
  application:
    name: jnpf-lims
  mvc:
    servlet:
      load-on-startup: 0
  main:
    allow-bean-definition-overriding: true
    allow-circular-references: true
  config:
    # 补丁 #8:配置来源 = 仓库 config/(镜像内 /config,经 JNPF_CONFIG_DIR 指向)。
    # file:(非 optional)= 缺文件启动即失败,防静默半配置;host-override 是宿主栈
    # 专用覆盖(容器内不存在,optional 落空跳过)。
    import:
      - file:${JNPF_CONFIG_DIR:config}/shared/datasource.yaml
      - file:${JNPF_CONFIG_DIR:config}/shared/resources.yaml
      - file:${JNPF_CONFIG_DIR:config}/shared/system-config.yaml
      - file:${JNPF_CONFIG_DIR:config}/shared/frame-config.yaml
      - file:${JNPF_CONFIG_DIR:config}/shared/logger.yaml
      - file:${JNPF_CONFIG_DIR:config}/shared/mq.yaml
      - file:${JNPF_CONFIG_DIR:config}/shared/discovery.yaml
      - optional:file:${JNPF_CONFIG_DIR:config}/host-override/discovery.yaml
 
# 应用服务器
server:
  tomcat:
    uri-encoding: UTF-8
  port: 30019
 
# M2 Task A1:logger.yaml(Nacos 共享配置)把 root 压到 ERROR,audit-sdk 探针用 log.warn 打印会被
# root 阈值吞掉(WARN < ERROR)。用 Spring Boot 原生 logging.level.<包名> 做包级覆盖——与 logger.yaml
# 里 logging.level.com.alibaba.nacos: ERROR 同一套机制,只影响 jnpf.audit.sdk 这一个新包,
# 不碰共享文件、不抬高 lims 其余日志噪声。
logging:
  level:
    jnpf.audit.sdk: WARN
 
audit:
  request-scope:
    # 业务动作层和签名层只记录 /app_LIMS;后台应用、总控台及无请求上下文任务全部跳过。
    frontend-only: true
    allowed-app-codes: LIMS
 
# 2026-08-11:层 1(MyBatis Executor 插件,字段级 diff)整套移除,本段 audit.layer1.* 配置随之删除。
# 移除依据:层 1 自 M2 交付起一直默认关(AUDIT_LAYER1_ENABLED 未设即 false),
# audit_events 表内 source_layer=1 零行——从未产出过任何数据。
# 现存审计层次:层 0(在线表单,audit 服务侧 listener)、层 2(@AuditLog 切面)、层 3(AuditClient 显式埋点)。
# 原配置内容(表清单 / 脱敏列 / 字段流转动作名规则)见 git 历史,恢复坐标记在
 
# LIMS 业务配置
lims:
  message:
    # 新消息事件表、发送配置和模板全部部署并通过 dry-run 后才能开启。
    enabled: ${LIMS_MESSAGE_ENABLED:false}
    # 水系统请验单生成后的即时通知可单独开启,便于不启动每日提醒时联调。
    water-sampling-enabled: ${LIMS_MESSAGE_WATER_SAMPLING_ENABLED:false}
    # 设备计量、留样观察提醒,默认每天 08:10 扫描。
    business-reminder-cron: "0 10 8 * * ?"
    retry:
      cron: "0 */5 * * * ?"
      batch-size: 100
      max-attempts: 5
      stale-minutes: 15
  remind:
    # 检验任务"要求完成日期"提醒扫描 cron。默认每天 08:00 跑。
    # 改 cron 需重启服务(Spring @Scheduled 不支持动态刷新)。
    # 开发调试推荐用 POST /lims/biz/jiance-task/remind/run-now?dry=true 手动触发。
    cron: "0 0 8 * * ?"
  haocai:
    alert:
      # 耗材缺货预警扫描 cron。默认每天 01:00 跑。
      # 改 cron 需重启服务(Spring @Scheduled 不支持动态刷新)。
      # 开发调试推荐用 POST /lims/haocai/alert/run-now?dry=true 手动触发。
      cron: "0 0 1 * * ?"
  wendingxing:
    wancheng:
      # 稳定性考察计划完成状态扫描,默认每 10 分钟执行一次;修改后需重启服务。
      cron: "0 */10 * * * ?"
      # 每页计划数,同时限制查询 B 的 IN 参数数量。
      page-size: 50
#  sxt:
#    jihua:
#      # 水系统 cron。默认每天 01:00 跑。
#      # 改 cron 需重启服务(Spring @Scheduled 不支持动态刷新)。
#      # 开发调试推荐用 POST /lims/biz/sxt/jihua/run-now?dry=true 手动触发。
#      cron: "0 0 1 * * ?"
 
management:
  endpoints:
    web:
      exposure:
        include: '*'
  endpoint:
    health:
      show-details: always
    # 开启在线日志查看功能
    logfile:
      access: unrestricted
 
# 核心:关闭内部接口鉴权(彻底跳过 SA-SAME-TOKEN 校验)
jnpf:
  security:
    enable-inner-auth: false  # 关闭内部令牌校验(关键!)
    ignore:
      urls:
        # 放行你的业务接口(全路径覆盖)
        - /custom/testApi
        - /api/custom/testApi
        - /dev-api/custom/testApi
        # 放行静态资源(解决 favicon.ico 报错)
        - /favicon.ico
        - /**/favicon.ico
  # 补充:租户过滤器放行(避免租户ID缺失拦截)
  tenant:
    ignore-urls:
      - /custom/testApi
      - /api/custom/testApi
      - /dev-api/custom/testApi
      - /favicon.ico
 
# 可选:关闭 Sa-Token 路由拦截(兜底)
sa-token:
  filter:
    exclude-paths:
      - /custom/testApi
      - /api/custom/testApi
      - /dev-api/custom/testApi
      - /favicon.ico