当前位置 : 首页 » 文章分类 :  开发  »  Spring-Cloud-Config

Spring-Cloud-Config

Spring Cloud Config配置中心相关笔记

Spring Cloud Config 中文文档
https://springcloud.cc/spring-cloud-config.html

springcloud(六):配置中心git示例 - 纯洁的微笑
http://www.ityouknow.com/springcloud/2017/05/22/springcloud-config-git.html


springcloud配置中心允许本地覆盖

# 允许本地配置覆盖远程配置
spring.cloud.config.allowOverride=true
# 允许本地配置文件或环境变量覆盖远程配置项
spring.cloud.config.overrideNone=true

spring boot 配置中心

<dependency>
  <groupId>org.springframework.cloud</groupId>
  <artifactId>spring-cloud-starter-config</artifactId>
</dependency>

Fetching config from server at : http://localhost:8888

2019-07-04 19:49:49,796 [main] org.springframework.cloud.config.client.ConfigServicePropertySourceLocator [207]: Fetching config from server at : http://localhost:8888
2019-07-04 19:49:49,937 [main] org.springframework.cloud.config.client.ConfigServicePropertySourceLocator [230]: Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
2019-07-04 19:49:49,938 [main] org.springframework.cloud.config.client.ConfigServicePropertySourceLocator [143]: Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/calendar/test": Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)

从spring cloud config 配置中心读取数据报:Fetching config from server at: http://localhost:8888错误
https://blog.csdn.net/Deemo__/article/details/81912316


上一篇 AWS Lightsail CentOS6 使用记录

下一篇 Spring-WebFlux

阅读
评论
273
阅读预计1分钟
创建日期 2019-07-05
修改日期 2019-07-05
类别

页面信息

location:
protocol:
host:
hostname:
origin:
pathname:
href:
document:
referrer:
navigator:
platform:
userAgent:

评论