ZhiLian-servce/zhiLian-business/zhiLian-data-service/src/main/resources/bootstrap.yml

44 lines
1.1 KiB
YAML

# Tomcat
server:
port: 9211
# Spring
spring:
rabbitmq:
username: guest
password: guest
virtualHost: /
port: 5672
host: 43.142.12.243
listener:
simple:
prefetch: 1 # 每次只能获取一条,处理完成才能获取下一条
publisher-confirm-type: correlated #确认消息已发送到交换机(Exchange)
publisher-returns: true #确认消息已发送到队列(Queue)
application:
# 应用名称
name: zhiLian-business
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 192.168.120.128:8848
# 命名空间
namespace: zhiLian
config:
# 配置中心地址
server-addr: 192.168.120.128:8848
# 命名空间
namespace: zhiLian
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
logging:
level:
com.zhiLian.business.mapper: DEBUG