SpringCloud Zookeeper 定制
Zookeeper Config可以通过设置以下属性来自定义:
bootstrap.yml。
spring:
cloud:
zookeeper:
config:
enabled: true
root: configuration
defaultContext: apps
profileSeparator: '::'
enabled:将此值设置为false会禁用Zookeeper Config。root:设置配置值的基本名称空间。defaultContext:设置所有应用程序使用的名称。profileSeparator:设置分隔符的值,该分隔符用于在带有配置文件的属性源中分隔配置文件名称。