cqdevicemgt/sgzb-modules/sgzb-material/src/main/resources/bootstrap-sgzb_cloud_dev_gz...

30 lines
750 B
YAML
Raw Normal View History

2024-08-08 14:57:05 +08:00
# Spring
2024-08-11 10:19:33 +08:00
spring:
2024-08-08 14:57:05 +08:00
cloud:
2024-08-11 10:19:33 +08:00
loadbalancer:
# 关闭Ribbon的负载均衡器
ribbon:
enabled: false
# 开启Nacos的负载均衡器
nacos:
enabled: true
2024-08-08 14:57:05 +08:00
nacos:
discovery:
# 服务注册地址
2024-08-13 17:33:16 +08:00
server-addr: 192.168.0.62:8848
namespace: sgzb_cloud_dev_nw
2024-08-08 14:57:05 +08:00
config:
# 配置中心地址
2024-08-13 17:33:16 +08:00
server-addr: 192.168.0.62:8848
namespace: sgzb_cloud_dev_nw
2024-08-08 14:57:05 +08:00
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
2024-08-11 10:33:43 +08:00
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
2024-08-13 17:33:16 +08:00
# 禁用Actuator端点的未经身份验证的访问
management:
endpoint:
env:
enabled: false