BootYK/Boot-auth/src/main/resources/bootstrap.yml

46 lines
1.2 KiB
YAML

# Tomcat
server:
port: 9001
# Spring
spring:
rabbitmq:
host: 124.222.55.145
port: 5672
username: guest
password: guest
virtual-host: /
listener:
simple:
prefetch: 1 #每次取出来一条消息,消费完毕之后取下一条消费
acknowledge-mode: manual #手动确认消费
retry: #重试
enabled: true
#发送确认配置 开启发送确认
publisher-confirm-type: correlated #消息发送到broker确认
publisher-returns: true #消息发送到队列确认
main:
allow-circular-references: true
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
application:
# 应用名称
name: boot-auth
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 124.222.55.145:8848
config:
# 配置中心地址
server-addr: 124.222.55.145:8848
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
namespace: aaa053d1-7e8e-4711-872f-f52e841e6453