I am new for spring config server. I want to implement spring config server from my application where my config server fetch properties details from git repositories but in case of my git server are not able to respond, how can I read properties from my local machine?
Note: I want to read properties from my local machine only in case my git server are not able to respond.
答案 0 :(得分:0)
您可以按照存储库的以下配置进行操作。
spring:
cloud:
config:
server:
git:
uri: https://github.com/your-repository/config-repo
repos:
local:
pattern: local*
uri: file:/home/your-directory/config-repo
这里是config-server-multiple-repositories的相关文档。