<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
spring.cloud.nacos.config.file-extension=properties
spring.cloud.nacos.config.ext-config[0].data-id=db-dev.properties
spring.cloud.nacos.config.ext-config[0].group=dev_group
spring-cloud-starter-bootstrap 这个依赖为了让项目认bootstrap.properties bootstrap.yaml,据说是springboot 2.4以后的一个问题
这个data id 是nacos-config-dev.properties不是nacos-config-dev.