feat: 新增mongodb和rabbitmq依赖和配置

This commit is contained in:
2026-08-05 23:58:47 +08:00
parent e5fb30aec6
commit 1066f909ab
8 changed files with 56 additions and 2 deletions
@@ -14,6 +14,12 @@ spring:
port: 6379
password: redis_qinghua
database: 2
mongodb:
uri: mongodb://qinghua:mongo_qinghua@192.168.3.100:27017/ecom_dmb_dev
rabbitmq:
host: 192.168.3.100
username: qinghua
password: rabbitmq_qinghua
jwt:
secret: your-secret-key-here-must-be-at-least-64-bytes-long-for-hs512-algorithm-security
@@ -16,6 +16,12 @@ spring:
port: 6379
password: redis_qinghua
database: 0
mongodb:
uri: mongodb://qinghua:mongo_qinghua@192.168.3.100:27017/ecom_dmb_staging
rabbitmq:
host: 192.168.3.100
username: qinghua
password: rabbitmq_qinghua
jwt:
secret: staging-jwt-secret-key-must-be-at-least-64-bytes-long-for-hs512-algorithm
@@ -17,6 +17,12 @@ spring:
port: 6379
password: redis_qinghua
database: 0
mongodb:
uri: mongodb://qinghua:mongo_qinghua@192.168.3.100:27017/ecom_dmb
rabbitmq:
host: 192.168.3.100
username: qinghua
password: rabbitmq_qinghua
jwt:
secret: prod-jwt-secret-key-must-be-at-least-64-bytes-long-for-hs512-algorithm-security
@@ -14,6 +14,12 @@ spring:
port: 6379
password: redis_qinghua
database: 3
mongodb:
uri: mongodb://qinghua:mongo_qinghua@192.168.3.100:27017/ecom_dmb_test
rabbitmq:
host: 192.168.3.100
username: qinghua
password: rabbitmq_qinghua
jwt:
secret: test-jwt-secret-key-must-be-at-least-64-bytes-long-for-hs512-algorithm
@@ -33,6 +33,22 @@ spring:
max-idle: 8
min-idle: 0
max-wait: -1ms
mongodb:
# host/uri 见各环境;这里只放公共行为
auto-index-creation: false
rabbitmq:
# host/账号见各环境
port: 5672
virtual-host: /
publisher-confirm-type: correlated
publisher-returns: true
template:
mandatory: true
listener:
simple:
acknowledge-mode: auto
prefetch: 10
default-requeue-rejected: false
# 订单统计读模型(汇总表已删,待重构前关闭写入与 miss 补算)