https://nacos.io/zh-cn/docs/quick-start-spring-cloud.html
Data ID添加规则:
${prefix}-${spring.profile.active}.${file-extension}
prefix 默认为 spring.application.name
的值
添加配置:
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
<version>2.1.0.RELEASE</version>
</dependency>