一、先在微服务pom文件中导入配置中心依赖(https://github.com/alibaba/spring-cloud-alibaba spring cloud alibaba地址) <dependency><groupId>com.alibaba.cloud</groupId><artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId></dependency> 二、在resources中添加一个bootstrap.properties文件配置nocas...