Spring boot Spring云配置客户端(多模块应用程序)无法连接到服务器云配置?

Spring boot Spring云配置客户端(多模块应用程序)无法连接到服务器云配置?,spring-boot,spring-cloud,spring-cloud-config,spring-cloud-gateway,Spring Boot,Spring Cloud,Spring Cloud Config,Spring Cloud Gateway,我有一个基于spring boot的微服务,这个微服务里面有一个3模块,所以我有根模块 - root-microservice-app - web . src . pom.xml - rest . src . pom.xml - boot-application( which contains the spring boot main class @SpringbootApplication) .

我有一个基于spring boot的微服务,这个微服务里面有一个3模块,所以我有根模块

- root-microservice-app
     - web
       . src
       . pom.xml
     - rest
       . src
       . pom.xml
     - boot-application( which contains the spring boot main class @SpringbootApplication)
       . src
       . pom.xml
 pom.xml
问题是此
客户端配置
无法连接到
云服务器配置
应用程序,该应用程序是另一个单独的spring boot应用程序。 我完成了在客户机中设置bootstap.yml的所有步骤,并提供了服务器配置服务id,因为它将由eureka发现,并且还在客户机pom中添加了客户机配置依赖项

Infos:我所有的微服务都将运行到docker中,因此通常当客户端启动并正常运行时,它可以找到服务器配置,但不幸的是,它无法看到它

有人知道这个问题吗

编辑:我在构建应用程序时遇到此错误

ConfigServicePropertySourceLocator : Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/application/default": Connection r efused: connect; nested exception is java.net.ConnectException: Connection refused: connect
问:在父pom或引导应用程序pom(包含bootstrap.yml文件)中,我应该将客户机依赖项放在哪里。问候

bootstrap.yml:

spring:
  application:
    name: my-app
  cloud:
    config:
      discovery:
        enabled: true
        service-id: CONFIG-SERVER
      clone-on-start: true
      failFast: true
      retry:
        max-interval: 5000
        max-attempts: 50
      username: usr
      password: pswd
以下是客户端依赖项:

<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-aop -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-aop</artifactId>
            <version>${version.spring.cloud.starter.aop}</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.springframework.retry/spring-retry -->
        <dependency>
            <groupId>org.springframework.retry</groupId>
            <artifactId>spring-retry</artifactId>
            <version>${version.spring.cloud.retry}</version>
        </dependency>
        <!-- SPRING CLOUD CONFIG SERVER CLIENT -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-config-client</artifactId>
            <version>2.1.0.RELEASE</version>
        </dependency>

org.springframework.boot
弹簧启动机aop
${version.spring.cloud.starter.aop}
org.springframework.retry
春季重试
${version.spring.cloud.retry}
org.springframework.cloud
spring云配置客户端
2.1.0.1发布

请添加配置客户端的依赖项和配置