代码拉取完成,页面将自动刷新
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/ 指明配置服务中心的网址。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。