java-africa-app/hzs-business/hzs-business-sale/src/main/resources/bootstrap.yml

93 lines
2.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 测试、研发配置文件
# 项目配置
hzs:
# PC地址
pc: https://cn.hzs413.com/
# 公众号地址
gzh:
# IOS地址
ios:
# android地址
android: http://yxydl.hzs413.com/q2efum
# 当前环境0=启用 1=禁用)
enable: 0
# Tomcat
server:
port: 8093
max-http-header-size: 16384
# Spring
spring:
application:
# 应用名称
name: hzs-sale
jackson:
# 返回数据序列化时,如果为 null 则不进行返回
default-property-inclusion: NON_NULL
profiles:
# 环境配置
active: dev
cloud:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
# 命名空间
namespace: hzs-africa
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
# 命名空间
namespace: hzs-africa
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
## 业务模块依赖的公用配置缓存、数据库、事务、mybatis-plus
- hzs-business-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
main:
## 当遇到同样名字的时候,是否允许覆盖注册
allow-bean-definition-overriding: true
## true 表示控制台不会打印循环依赖异常
allow-circular-references: true
dubbo:
registry:
# 使用spring-cloud注册配置
address: spring-cloud://localhost
provider:
# 业务线程池大小
threads: 400
consumer:
# 远程服务调用超时时间(毫秒)
timeout: 10000
# 重试次数默认2
retries: 0
# 启动时不检查dubbo服务是否启动
check: false
# 负载策略(random随机roundrobin轮询leastactive最少活跃调用)
loadbalance: "leastactive"
# 业务线程池大小
threads: 400
protocol:
# 设置协议为dubbo
name: dubbo
# dubbo 协议端口 -1 表示自增端口从20880开始
port: -1
# 业务线程池大小
threads: 400
cloud:
# 订阅服务
subscribed-services: hzs-system, hzs-member, hzs-third, hzs-activity, hzs-bonus,hzs-scm
scan:
# dubbo 服务扫描包(开启之后才会对外提供服务)
base-packages: com.hzs.sale
# 日志配置
logging:
level:
com.hzs: debug
org.springframework: warn