Consul Config 使用Git做版本控制的实现
Spring Cloud Config 原理
我们通过git 把配置文件推送到远程仓库做版本控制,当版本发生变化的时候,远程仓库通过webhook机制推送消息给 Config Server,Config Server 将修改通知发送到消息总线,然后所有的Config Client 进行配置刷新。
非常巧妙的借助了Git来做配置文件修改的版本控制。
Consul Config 的FILES 机制
public enum Format {
/**
* Indicates that the configuration specified in consul is of type native key values.
*/
KEY_VALUE,
/**
* Indicates that
