If you are using the git profile, you need to set a Git URI in your configuration. If you are using

简介: If you are using the git profile, you need to set a Git URI in your configuration. If you are using

一、场景

启动spring-cloud配置中心的时候,报了以下错误

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.

二、解决方式

1.添加profiles配置

spring:
  profiles:
    active: native

2.添加git指向

spring:
  cloud:
    config:
      server:
        git:
          uri:  #配置git服务地址
          username:  #配置git用户名
          password:  #配置git密码


目录
相关文章
|
9月前
|
开发工具 git
成功解决git rebase问题:First, rewinding head to replay your work on top of it...
成功解决git rebase问题:First, rewinding head to replay your work on top of it...
|
4天前
|
API Python Windows
[已解决] openai.error.AuthenticationError: No API key provided. You can set your API key in code using
[已解决] openai.error.AuthenticationError: No API key provided. You can set your API key in code using
137 0
|
6月前
|
Java Spring
Spring Boot 启动报错解决:No active profile set, falling back to default profiles: default
Spring Boot 启动报错解决:No active profile set, falling back to default profiles: default
123 0
|
9月前
|
开发工具 git
git报错,error: You have not concluded your merge (MERGE_HEAD exists). hint: Please,
git报错,error: You have not concluded your merge (MERGE_HEAD exists). hint: Please,
92 0
|
9月前
|
JavaScript 前端开发
.bezierEasingMixin(); ^ Inline JavaScript is not enabled. Is it set in your op..
.bezierEasingMixin(); ^ Inline JavaScript is not enabled. Is it set in your op..
131 0
|
10月前
|
Java Nacos 开发者
Nacos无法启动详解:Please set the JAVA_HOME variable in your environment, We need java(x64) jdk8 or later
Nacos无法启动详解:Please set the JAVA_HOME variable in your environment, We need java(x64) jdk8 or later
1149 1
|
11月前
|
Shell 开发工具 git
(极简解决)git commit 时出现:please enter the commit message for your changes
(极简解决)git commit 时出现:please enter the commit message for your changes
247 0
|
4天前
|
缓存 数据可视化 网络安全
Git命令大全
Git命令大全
62 1
|
4天前
|
开发工具 git
Git教程:深入了解删除分支的命令
【4月更文挑战第3天】
67 0
Git教程:深入了解删除分支的命令
|
4天前
|
存储 Shell Linux
【Shell 命令集合 文件管理】Linux git命令使用教程
【Shell 命令集合 文件管理】Linux git命令使用教程
37 0

相关实验场景

更多