1.可以为每个服务配置一个命名(隔离)
2.在配置列表中添加配置
3.代码中在bootstrap.yml中配置
spring:
application:
name: gulimall-coupon
cloud:
nacos:
config:
server-addr: 47.94.59.8:8848
namespace: 6d277b52-1dfe-4b19-b7a2-87319f81d60c
group: dev
ext-config[0].data-id: datasource.yaml
ext-config[0].group: dev
ext-config[0].refresh: true
ext-config[1].data-id: mybatis.yaml
ext-config[1].group: dev
ext-config[1].refresh: true
ext-config[2].data-id: other.yaml
ext-config[2].group: dev
ext-config[2].refresh: true