readme 626 B

12345678910111213141516171819202122
  1. 微服务客户端
  2. 1、添加依赖
  3. 2、启动类添加注解
  4. 3、yml配置注册中心地址
  5. 配置中心客户端
  6. 1、添加依赖
  7. 2、添加bootstrap.yml文件指定要读取的配置信息
  8. http://localhost:8888/application/profile
  9. application:服务名,profile:环境,label:版本分支
  10. /{application}/{profile}[/{label}]
  11. /{application}-{profile}.yml
  12. /{label}/{application}-{profile}.yml
  13. /{application}-{profile}.properties
  14. /{label}/{application}-{profile}.properties
  15. 读取顺序(可能不对):
  16. bootstrap.yml
  17. application.yml
  18. 配置中心的application.yml
  19. 配置中心的applicationname.yml
  20. 后面覆盖前面