配置服务器配置无效

elcex8rz  于 2021-07-16  发布在  Java
关注(0)|答案(0)|浏览(357)

我正处于springcloud的学习阶段&使用springversion2.4.3和springcloud版本
我创建了两个属性文件
应用程序.yml

spring:
  application:
    name: cloud-server

server:
  port:  8888

引导.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.

如何解决这种错误?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题