spring: profiles: active: dev application: name: saas-tenant-admin config: import: #使用nacos配置 demo-boot-v3对应上面的data-id nacos:demo-boot-v3 cloud: nacos: config: file-extension: yaml group: DEFAULT_GROUP refresh-enabled: true --- # local spring: config: activate: on-profile: dev cloud: nacos: discovery: server-addr: http://localhost:8848 namespace: c5c00044-93e6-4e66-8060-3f39aa7ab82b group: dev config: server-addr: http://localhost:8848 file-extension: yaml namespace: c5c00044-93e6-4e66-8060-3f39aa7ab82b group: dev --- # prod spring: config: activate: on-profile: prod cloud: nacos: discovery: server-addr: http://nacos:8848 namespace: rrrrrrrrr group: prod config: server-addr: http://nacos:8848 file-extension: yaml namespace: rrrrrrrrr group: prod