配置SpringCloud-nacos将application配置文件改成bootstrap.xml后变红解决方案: 在pom中新增spring-cloud-starter-bootstrap <dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-bootstrap</artifactId><version>3.0.3</version> </dependency>