Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid config server configuration

I am on learning stage of Spring Cloud & using spring version 2.4.3 and spring-cloud-version

2020.0.1 and I created two property file

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 

but still I got following error

***************************
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.

How to solve this kind of error?

like image 890
Mayur Jagtap Avatar asked Sep 18 '25 06:09

Mayur Jagtap


1 Answers

If you are following the example in the book you referenced then I will suggest you move this

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

to application.yml

That is what I did and it worked for me

like image 98
Keelean Avatar answered Sep 21 '25 04:09

Keelean