Files
msgexchange-v2/src/main/resources/application-dev.yml
T

35 lines
1.0 KiB
YAML
Raw Normal View History

# 开发/影子对拍环境 profileU03/N32 + U07):
# - /env、/beans 放开以便“改值—回读”与装配核验(生产 profile 不加载本文件)
# - msgx.stubs=true:无 MySQL/Redis/Kafka 时以内存 stub 仓储跑通「启动 + 收报 + 主泵/投递循环」
# - msgx.pipeline.autostart=true:启动即拉起 Pump/Dispatcher 专用线程
# 启动:MICRONAUT_ENVIRONMENTS=dev ./gradlew run
msgx:
register-eureka: false
stubs: true
pipeline:
autostart: true
# DB 仅在真实实装接入后需要;stub 模式不建连(Flyway 关闭;datasource 保留默认值以免占位符解析失败)
flyway:
datasources:
default:
enabled: false
datasources:
default:
url: ${MSGX_DB_URL:jdbc:mysql://127.0.0.1:3306/msgexchange_dev}
username: ${MSGX_DB_USER:root}
password: ${MSGX_DB_PASSWORD:}
driver-class-name: com.mysql.cj.jdbc.Driver
micronaut:
endpoints:
env:
enabled: true
sensitive: false
beans:
enabled: true
sensitive: false
server:
port: 8080