8.7 部署-2
This commit is contained in:
parent
0f23ef41c7
commit
6b5a86cd4d
@ -31,15 +31,71 @@ spring:
|
||||
connection-timeout: 30000
|
||||
connection-test-query: SELECT 1
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
# RabbitMQ
|
||||
rabbitmq:
|
||||
addresses: rabbitmq
|
||||
port: 5672
|
||||
username: admin
|
||||
password: admin
|
||||
listener:
|
||||
simple:
|
||||
prefetch: 1 # 每次投递n个消息,消费完在投递n个
|
||||
template:
|
||||
delivery-mode: persistent # 确保全局默认设置为持久化(可选)
|
||||
# 消息配置
|
||||
config:
|
||||
# 生产者
|
||||
producer:
|
||||
# 主题配置
|
||||
topic_order_pay_success:
|
||||
# 绑定交换机
|
||||
exchange: pay_mall_exchange
|
||||
# 消费主题
|
||||
routing_key: topic.order_pay_success
|
||||
# 消费队列
|
||||
queue: pay_mall_queue_2_order_pay_success
|
||||
consumer:
|
||||
# 消费 topic 主题,team_success
|
||||
topic_team_success:
|
||||
# 绑定交换机 - 消息提供者的交换机
|
||||
exchange: group_buy_market_exchange
|
||||
# 消息主题
|
||||
routing_key: topic.team_success
|
||||
# 消费队列 - 每个系统有自己的消费队列
|
||||
queue: pay_mall_queue_2_topic_team_success
|
||||
# 主题配置
|
||||
topic_order_pay_success:
|
||||
# 绑定交换机
|
||||
exchange: pay_mall_exchange
|
||||
# 消费主题
|
||||
routing_key: topic.order_pay_success
|
||||
# 消费队列
|
||||
queue: pay_mall_queue_2_order_pay_success
|
||||
topic_team_refund:
|
||||
# 绑定交换机 - 消息提供者的交换机
|
||||
exchange: group_buy_market_exchange
|
||||
# 消息主题
|
||||
routing_key: topic.team_refund
|
||||
# 消费队列
|
||||
queue: s_pay_mall_queue_2_topic_team_refund
|
||||
|
||||
# 如果你想在 application.yml 里集中管理,也可以在 prod profile 下覆盖:
|
||||
# spring.redis.host: redis
|
||||
# spring.redis.port: 6379
|
||||
|
||||
mybatis:
|
||||
mapper-locations: classpath:/mybatis/mapper/*.xml
|
||||
config-location: classpath:/mybatis/config/mybatis-config.xml
|
||||
|
||||
dubbo:
|
||||
application:
|
||||
name: pay-mall-service # 换成各自服务名
|
||||
registry:
|
||||
address: nacos://nacos:8848 # 远程环境写内网地址
|
||||
# username/password 如果 Nacos 开了鉴权
|
||||
protocol:
|
||||
name: dubbo
|
||||
consumer:
|
||||
timeout: 3000 # 毫秒
|
||||
check: false # 忽略启动时服务是否可用
|
||||
|
||||
weixin:
|
||||
config:
|
||||
original-id: ${paymall.wechat.original-id}
|
||||
|
@ -1,3 +1,3 @@
|
||||
spring:
|
||||
profiles:
|
||||
active: dev,local
|
||||
active: prod,local
|
||||
|
Loading…
x
Reference in New Issue
Block a user