senior_grade5_month/gateway/src/main/resources/bootstrap.yml

35 lines
874 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

server:
port: 10010
spring:
application:
#服务名称
name: gateway
profiles:
#配置文件生效环境
active: dev
cloud:
nacos:
#nacos服务器地址
server-addr: http://124.70.132.13:8848
#nacos服务发现配置
discovery:
#nacos服务注册命名空间ID默认为public
namespace: 2e6a4975-46b3-4035-b77d-92b05ae48a66
#nacos配置文件配置
config:
#指定读取命名空间配置默认为public
namespace: ${spring.cloud.nacos.discovery.namespace}
#nacos配置文件类型
file-extension: yaml
#共享配置
shared-configs:
- data-id: common-redis.yaml
group: SPRING_CLOUD_COMMONS
refresh: true
- data-id: common.yaml
group: SPRING_CLOUD_COMMONS
refresh: true