2019年1月29日
摘要: SpringCloud Config服务端 1、导入依赖 2、配置bootstrap.yml文件,连接到config服务端 3、使用@Value注解 4、application.properties 和 bootstrap.yml 区别4.1、首先yml和properties文件都是属于配置文件,功 阅读全文
posted @ 2019-01-29 20:52 Ruthless 阅读(376) 评论(0) 推荐(0)
摘要: 1、导入依赖 2、使用@EnableConfigServer开启配置中心服务端支持 3、创建git仓库项目并上传配置文件 4、在application.yml文件中配置git远程仓库信息 启动config-server服务。 5、浏览器上访问配置文件http://localhost:6063/app 阅读全文
posted @ 2019-01-29 20:45 Ruthless 阅读(861) 评论(1) 推荐(0)