使用 spring.config.import 导入不同 group 中的文件
spring:
application:
name: xxx
main:
allow-bean-definition-overriding: true
cloud:
nacos:
config:
server-addr: 192.168.111.25:8848
file-extension: yaml
config:
import:
- nacos:${spring.application.name}.yaml
- nacos:xxx-redis.yaml?refresh=true&&group=EDNIUTRANS_DOCUMENT_GROUP
- nacos:xxx-file-path-config.yaml?refresh=true&&group=EDNIUTRANS_DOCUMENT_GROUP