springcloud异常:Invalid config server configuration

我正在学习Spring Cloud,使用spring 2.4.3版本和spring-cloud-version 2020.0.1,我创建了两个属性文件

application.yml

spring:
  application:
    name: cloud-server
 
server:
  port:  8888

bootstrap.yml

spring:
  cloud:
    config:
      server:
        git:
          uri: https://github.com/************/insurance-config-server
        default-label: main 

但我仍然得到以下错误

***************************
APPLICATION FAILED TO START
***************************

Description:

Invalid config server configuration.

Action:

If you are using the git profile, you need to set a Git URI in your configuration.  If you are using a native profile and have spring.cloud.config.server.bootstrap=true, you need to use a composite configuration.

我该怎么解决这种问题?


StackOverflow:spring - Invalid config server configuration - Stack Overflow