Spring cloud SpringCloudConfig一直在检查主分支

Spring cloud SpringCloudConfig一直在检查主分支,spring-cloud,spring-config,Spring Cloud,Spring Config,我遇到了Spring云配置的问题。我有一个带有配置文件的远程git repo,它被本地克隆下来进行本地测试 我的项目有4个bootstrap.yml文件,如下所示 bootstrap.yml spring: application: name: ConfigurationService profiles: active: dev, local cloud: config: fail-fast: true server:

我遇到了Spring云配置的问题。我有一个带有配置文件的远程git repo,它被本地克隆下来进行本地测试

我的项目有4个bootstrap.yml文件,如下所示

bootstrap.yml

spring:
  application:
    name: ConfigurationService
  profiles:
    active: dev, local
  cloud:
    config:
      fail-fast: true
      server:
        git:
          clone-on-start: true
          search-paths: '{application}'
          username: USERNAME
          password: PASSWORD
        bootstrap: true
      enabled: true
spring:
  application:
    name: ConfigurationService
  profiles:
    active: dev, local
  cloud:
    config:
      label: develop

server:
  port: 0
spring:
  cloud:
    config:
      server:
        git:
          uri: file:///${user.home}/Projects/project
          clone-on-start: false
spring:
  cloud:
    config:
      server:
        git:
          uri: https://bitbucket.org/
          clone-on-start: true
bootstrap-dev.yml

spring:
  application:
    name: ConfigurationService
  profiles:
    active: dev, local
  cloud:
    config:
      fail-fast: true
      server:
        git:
          clone-on-start: true
          search-paths: '{application}'
          username: USERNAME
          password: PASSWORD
        bootstrap: true
      enabled: true
spring:
  application:
    name: ConfigurationService
  profiles:
    active: dev, local
  cloud:
    config:
      label: develop

server:
  port: 0
spring:
  cloud:
    config:
      server:
        git:
          uri: file:///${user.home}/Projects/project
          clone-on-start: false
spring:
  cloud:
    config:
      server:
        git:
          uri: https://bitbucket.org/
          clone-on-start: true
引导本地.yml

spring:
  application:
    name: ConfigurationService
  profiles:
    active: dev, local
  cloud:
    config:
      fail-fast: true
      server:
        git:
          clone-on-start: true
          search-paths: '{application}'
          username: USERNAME
          password: PASSWORD
        bootstrap: true
      enabled: true
spring:
  application:
    name: ConfigurationService
  profiles:
    active: dev, local
  cloud:
    config:
      label: develop

server:
  port: 0
spring:
  cloud:
    config:
      server:
        git:
          uri: file:///${user.home}/Projects/project
          clone-on-start: false
spring:
  cloud:
    config:
      server:
        git:
          uri: https://bitbucket.org/
          clone-on-start: true
引导远程.yml

spring:
  application:
    name: ConfigurationService
  profiles:
    active: dev, local
  cloud:
    config:
      fail-fast: true
      server:
        git:
          clone-on-start: true
          search-paths: '{application}'
          username: USERNAME
          password: PASSWORD
        bootstrap: true
      enabled: true
spring:
  application:
    name: ConfigurationService
  profiles:
    active: dev, local
  cloud:
    config:
      label: develop

server:
  port: 0
spring:
  cloud:
    config:
      server:
        git:
          uri: file:///${user.home}/Projects/project
          clone-on-start: false
spring:
  cloud:
    config:
      server:
        git:
          uri: https://bitbucket.org/
          clone-on-start: true
远程回购有一个主分支和一个开发分支。当我签出本地开发并启动配置服务时,它会签出主分支

为什么会发生这种情况?我该如何阻止它?我正在开发配置文件和本地配置文件中启动配置服务,该配置文件使用bootstrap-dev.yml中的“develop”标签