Config启动报错:If you are using the git profile, you need to set a Git URI in your configuration.

The error when starting the service locally is as follows:

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

Insert image description here
This problem is a configuration problem. A certain configuration is invalid. I don’t understand the specific reason yet, but I solved it (if I know it later, I will continue to update here) Solution
:

The first

Insert image description here
Insert image description here

Insert image description here
Restart, the premise is that there must be a configuration file locally.
Insert image description here
If the restart is unsuccessful, delete it if it is written in the place shown in the figure below.
Insert image description here
Friendly link: Play with Spring Cloud's Configuration Center
Configuration Center (Config-Server)

Guess you like

Origin blog.csdn.net/qq_42071369/article/details/120829597