1、配置如下
spring:
cloud:
nacos:
config:
server-addr: 127.0.0.1:8848
file-extension: yml
shared-dataids: common1.yaml,common2.yaml
refreshable-dataids: common1.yaml
ext-config:
- data-id: common1.yaml
group: DEFAULT_GROUP
refresh: true
- data-id: common2.yaml
group: DEFAULT_GROUP
refresh: true
application:
name: pay
profiles:
active: dev
2、生产环境nacos搭建如下
https://www.imooc.com/article/288153