spring-cloud-config-server之拉取git失败解决方案
2018-08-24 16:56
423 查看
最近在搞springcloud-config配置中心,windows中的git出了点小毛病,本地的global配置文件一直处于失效状态,小乌龟拉代码也不行,但是git bash 黑窗口使用git clone命令是可以的,但还是需要输入账号密码,查看了springcloud官方文档,可以指定git路径为本地路径
文档如下:
文档如下:
application.properties. server.port: 8888 spring.cloud.config.server.git.uri: file://${user.home}/config-repo where ${user.home}/config-repo is a git repository containing YAML and properties files. [Note] in Windows you need an extra "/" in the file URL if it is absolute with a drive prefix, e.g. file:///${user.home}/config-repo.关于怎么需要什么jar包依赖,随便找个帖子都有这就不说了,主要看这段
spring.cloud.config.server.git.uri: file://${user.home}/config-repo配置后通过请求ip:port
/{application}/{profile}[/{label}] /{application}-{profile}.yml /{label}/{application}-{profile}.yml /{application}-{profile}.properties /{label}/{application}-{profile}.properties案例:localhost:8081/master/test
相关文章推荐
- 为Spring Cloud Config Server配置远程git仓库
- spring-cloud-config-server——Environment Repository(Git Backend)
- Spring Cloud Config Server基于本地git使用SSH clone github repository
- 为Spring Cloud Config Server配置远程git仓库
- spring-cloud中遇到的坑sidecar与config server client
- spring-cloud-config-server
- spring cloud config server源码解析
- 详解Spring Cloud Config采用Git存储时两种常用的配置策略
- Spring Cloud Config Server
- 学习微服务的统一配置管理-springCloud config+git
- spring-cloud-config-server——Environment Repository
- spring cloud 之 config-server
- Spring Cloud Config Server 实践
- 4. 分布式配置中心 springcloud-config-server
- spring cloud config server使用svn来作为外部配置中心
- Spring Cloud Config-Git后端
- Spring Cloud Config-Git后端
- (Spring Cloud微服务实战-书中之坑)spring cloud config优先读取本地配置,其次读取git仓库
- spring cloud config server 使用本地配置文件报错
- Spring Cloud之config server(配置中心)