Spring cloud 无法在Eureka First引导模式下运行Spring云配置服务器

Spring cloud 无法在Eureka First引导模式下运行Spring云配置服务器,spring-cloud,netflix-eureka,Spring Cloud,Netflix Eureka,*****配置服务器-应用程序服务设置***** 下面是application.yml的配置 server: port: 8882 eureka: client: serviceUrl: defaultZone: http://localhost:8761/eureka/ spring: cloud: config: server: git:uri: https://github.com/appleman/config 下面

*****配置服务器-应用程序服务设置*****

下面是application.yml的配置

server:
  port: 8882
eureka:
  client:
    serviceUrl:
      defaultZone: http://localhost:8761/eureka/
spring:
  cloud:
    config:
      server:
         git:uri: https://github.com/appleman/config
下面是boostrap.yml的配置

spring:
  application:
    name: configserver
此纯spring引导应用程序的启动将配置服务器注册到Eureka

**通用Eureka服务器正在8761端口上运行

********下面是应用程序客户端配置*****

下面是my bootstrap.yml中的应用程序客户端配置

spring:
  application:
    name: contractService,envDEV13 
  cloud:
    config:
    enabled: true
    discovery:
     enabled: true
     serviceId: configserver
eureka:
  instance:
    nonSecurePort: ${server.port:8080}
  client:
    serviceUrl:
      defaultZone: http://${eureka.host:localhost}:${eureka.port:8761}/eureka/
在Spring控制器中注入属性(如下面的代码段)不起作用

@Value("${creditService.eppDbUrl}")
String bar;

如果我们做错了什么,请建议我们。

为什么有spring.application.name:contractService,envDEV13?我不知道配置服务器会对此做出什么反应。github中的文件名是什么?/env在应用程序客户端上显示了什么?spring.application.name:contractService,envDEV13,这将在运行时将两个属性文件从github加载到project。github中的文件名:contractService.properties、envDEV13.properties。服务器本身未启动,因为它在启动期间未能注入变量bar,所以无法调用/env。如果您有任何见解,请提出建议。