1 Star 0 Fork 0

constfafa / config-server-demo01-config

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

config-server配置服务--客户端(core服务)部署步骤:

1.添加依赖:compile('org.springframework.cloud:spring-cloud-starter-config')

2.将项目中的application.properties转移到配置中心(或git相应分支)中,如core.properties

3.添加bootstrap.yml文件,配置内容如下: spring: application: name: core cloud: config: uri: http://localhost:8888 name: core fail-fast: true password: root username: user

#其中: spring.cloud.config.name为被工程名称,需与配置中心(或git)相应的配置文件properties的名称保存一致 spring.cloud.config.uri= http://localhost:8888/ 指明配置服务中心的网址。

空文件

简介

spring cloud实现热更新 第一步:config示例 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/constfafa/config-server-demo01-config.git
git@gitee.com:constfafa/config-server-demo01-config.git
constfafa
config-server-demo01-config
config-server-demo01-config
master

搜索帮助