safeway/bwie-moudels/bwie-rabbit/target/classes/bootstrap.yml

44 lines
1.1 KiB
YAML

# Tomcat
server:
port: 9008
# Spring
spring:
rabbitmq:
host: 111.229.36.192
port: 5672
virtualHost: /
username: guest
password: guest
listener:
simple:
prefetch: 1 # 每次取出来一条消息消费 消费完成消费下一条
acknowledge-mode: manual # 设置消费端手动 ack确认
retry:
enabled: true # # 是否支持重试
publisher-confirm-type: correlated #确认消息已发送到交换机(Exchange)
publisher-returns: true #确认消息已发送到队列(Queue)
main:
allow-circular-references: true
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
application:
# 应用名称
name: bwie-rabbit
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 111.229.36.192:8848
config:
# 配置中心地址
server-addr: 111.229.36.192:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}