Files
msgexchange-v2/src/main/resources/application-dev.yml
T
windyboy 7b7b61f100 feat(processing): 实现自有 PostgreSQL 运营航班权威存储与单事务闭环 (ACM2-28)
- FS1: 增加 Flyway 迁移 V1.1.0__flight_schd.sql,创建 FLIGHT_SCHD 与 SCHD_GEN
- FS2: 实现 FlightSchdRepository 接口及 JdbcFlightSchdRepository 与 StubFlightSchd,增强 JdbcOps 事务管理
- FS3: 扩展 MessageProcessor 事务 2 与按 FLID 点查视图,合并变更、事件与终态入单事务提交
- FS4: SnapshotFlow SQL 化(批处理 upsert、域内差删、SQL CAS 推进与熔断保护),JobExecutor 接入 PG 清场删除
- FS5: 彻底退役 Redis 权威与写路径,移除 FlightRedisClient、Lua 脚本、健康指示器与配置残留
- FS6: 补齐 U09/U29 不变量门禁(崩溃幂等、CAS 防并发、ADFT 存活保障、非 UTC JVM/会话时区无漂移)与 FlywayMigrationTest
- FS7: 交付影子对拍比较内核 FlightStoreDiffTool 与单元测试
- FS8: 全面回改 decision-flight-state、architecture、design、user-stories 权威文档与规范
2026-09-07 16:12:00 +08:00

70 lines
3.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 开发/影子对拍环境 profileU03/N32 + U07):
# - /env、/beans 放开以便“改值—回读”与装配核验(生产 profile 不加载本文件)
# - msgx.stubs=true:无 MySQL/Redis/Kafka 时以内存 stub 跑通「启动 + compat HTTP 写 +
# 主泵/投递循环」(生产主路径 JDBC 轮询 InboxPoller 属 U05stub 未覆盖)
# - msgx.pipeline.autostart=true:启动即拉起 Pump/Dispatcher 专用线程
# 启动:MICRONAUT_ENVIRONMENTS=dev ./gradlew run
msgx:
register-eureka: false
stubs: true
pipeline:
autostart: true
# dev 不注册也不发现(stub):关 eureka discovery,避免 discovery 客户端健康指示器
# 因无 eureka 服务而把 /health 拉成 DOWN
eureka:
client:
discovery:
enabled: false
# DB 仅在真实实装接入后需要;stub 模式不建连——datasources.default.enabled=false 经
# micronaut-jdbc 的 JdbcDataSourceEnabled 条件排除 DataSource bean"stub 不建连"落地)。
# 遵循 ACM2-12/ACM2-13 自有数据库(PostgreSQL)口径。真实接入时:设 MSGX_PG_URL + enabled=true。
datasources:
default:
enabled: false
url: jdbc:postgresql://${MSGX_PG_HOST:127.0.0.1}:${MSGX_PG_PORT:5432}/${MSGX_PG_NAME:msgx}
username: ${MSGX_PG_USER:msgx_dev}
password: ${MSGX_PG_PASSWORD:msgx_dev_pass}
driver-class-name: org.postgresql.Driver
# 共享信箱 MySQL 适配配置(ACM2-12/ACM2-13):
mailbox:
shared-mysql:
enabled: false
url: jdbc:mysql://${MSGX_MAILBOX_HOST:127.0.0.1}:${MSGX_MAILBOX_PORT:3306}/${MSGX_MAILBOX_NAME:cdairport}?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&characterEncoding=utf8mb4
username: ${MSGX_MAILBOX_USER:msgx_dev}
password: ${MSGX_MAILBOX_PASSWORD:msgx_dev_pass}
driver-class-name: com.mysql.cj.jdbc.Driver
# dev 默认 profile 为纯内存 stubstubs=true),无外部数据库,故默认关 Flyway 避免启动报错;
# 当本地开发启用真实 PostgreSQLdatasources.default.enabled=true)时,设 MSGX_FLYWAY_ENABLED=true 自动运行 Flyway 迁移。
flyway:
datasources:
default:
enabled: ${MSGX_FLYWAY_ENABLED:false}
# stub 模式无真实 Kafka:关掉 micronaut 自带的 KafkaHealthIndicator
# (健康由自定义 kafka-delivery indicator 承担;ACM2-28Redis 已退出阶段 A 权威与写路径)。
kafka:
health:
enabled: false
# stub 无真实 Kafka:仍给 servers 合法默认(Micronaut 占位符默认值内嵌冒号会解析坏,
# 故拆 host/port 两个无冒号默认;字面冒号留在占位符之间)。真实接入时设 MSGX_KAFKA_HOST/PORT。
bootstrap:
servers: ${MSGX_KAFKA_HOST:127.0.0.1}:${MSGX_KAFKA_PORT:9092}
# 管理端点(U03/N32):/env 默认禁用、/beans 默认 enabled+sensitive——dev 显式放开。
# 注意:端点配置前缀是顶层 `endpoints`micronaut.endpoints.* 是死配置,实测不生效)。
endpoints:
env:
enabled: true
sensitive: false
beans:
enabled: true
sensitive: false
health:
details-visible: ANONYMOUS # dev 排障:无鉴权也显示各 indicator 明细(生产不加载本文件)
micronaut:
server:
port: 8080