专栏名称: SpringForAll社区
「文艺版」Spring 的一切「接地气版」Spring For All 玩最纯粹的技术!做最专业的 Spring 民间组织~
目录
今天看啥  ›  专栏  ›  SpringForAll社区

Consul 配置中心实践

SpringForAll社区  · 公众号  ·  · 2019-05-07 08:00
    

文章预览

▶ Spring Boot 依赖与配置 Maven 依赖 org.springframework.cloud spring-cloud-dependencies Greenwich.RELEASE pom import ..... org.springframework.cloud spring-cloud-starter-consul-config ▶ 使用说明 1、部署 Consul 参考文档:Docker 部署 Consul 2、在 resources 路径下添加配置文件 bootstrap.properties,示例如下: # consul 基本配置 spring . cloud . consul . host = 127.0 . 0.1 spring . cloud . consul . port = 8500 # 启用 consul 配置中心 spring . cloud . consul . config . enabled = true # 基础文件夹,默认值 config spring . cloud . consul . config . prefix = config # 应用文件夹,默认值 application spring . cloud . consul . co ………………………………

原文地址:访问原文地址
快照地址: 访问文章快照
总结与预览地址:访问总结与预览
推荐产品:   推荐产品