配置中心
海里的顽石
这个作者很懒,什么都没留下…
展开
-
spring-cloud-consul配置中心获取指定路径下的配置
一、consul配置中心存在的问题:我们使用consul作为配置中心时,在springboot项目的配置文件中一般会添加如下配置spring: profiles: active: dev application: name: customer-service config: import: optional:consul:localhost:8500 cloud: consul: health-indicator: use原创 2021-09-18 19:41:05 · 1507 阅读 · 0 评论 -
springCloud2020.0.2+springboot2.4.5接入consul注册中心和服务中心
spring: config: import: optional:consul:localhost:8500 profiles: active: dev application: name: my-service cloud: consul: # 配置中心相关配置 config: enabled: true #是否启用配置中心功能 format: yaml #设置配置值的格式 prefi.原创 2021-05-14 16:56:24 · 458 阅读 · 0 评论