关于Apollo怎么安装,我就不介绍,可以看这篇文章:https://www.cnblogs.com/vic-tory/p/13736192.html

一.Apollo使用:

1.创建项目

2.添加配置

3.发布

二.ASP.NET Core客户端使用Apoolo

1.配置

{
"apollo": {
"AppId": "apollo-start",
"MetaServer": "http://localhost:8080",
"ConfigServer": [
"http://localhost:8080"
]
}
}

2.安装Nuget包:Com.Ctrip.Framework.Apollo.Configuration

3.使用

        public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder
.ConfigureAppConfiguration((hostingContext, builder) =>
{
builder
.AddApollo(builder.Build().GetSection("apollo"))
.AddDefault()
.AddNamespace("application");
})
.UseStartup<Startup>();
});

4.效果

最新文章

  1. 【分布式】Zookeeper的服务器角色
  2. OpenJudge1700:八皇后问题 //不属于基本法的基本玩意
  3. delimiter
  4. org.apache.hadoop.filecache-*
  5. 关于main函数的定义
  6. 11.9 noip模拟试题
  7. Oracle V$SQLAREA
  8. 从win7到mac os再到win10,体验总结
  9. IE6/IE7浏览器中&quot;float: right&quot;自动换行的解决方法
  10. [刷题]Codeforces 785D - Anton and School - 2
  11. NYOJ--STL--擅长排列的小明(强大的string :: iterator 和next_permutation)
  12. Ubuntu 安装和使用 Supervisor(进程管理)
  13. Windows Developer Day - MSIX and Advanced Installer
  14. UNIX网络编程——非阻塞connect
  15. Taurus.MVC 支持Asp.Net Core 的过程
  16. Java代码复用的三种常用方式:继承、组合和代理
  17. Python学习之路——迭代器
  18. 2017-9-3模拟赛T3 密码(key)
  19. Angular 2/4/5+ 重复点击菜单刷新界面
  20. java高精度学习笔记

热门文章

  1. HYSBZ-1045 糖果传递
  2. 【趣味设计模式系列】之【代理模式3--Cglib动态代理源码解析】
  3. ent orm笔记2---schema使用(上)
  4. javascript正则用法
  5. JavaScript闭包(内存泄漏、溢出以及内存回收),超直白解析
  6. linux字符串转数字
  7. laravel+vue+vuetify(下载图片到本地)
  8. Ignatius and the Princess IV (水题)
  9. Codeforces 1250E The Coronation
  10. C#中SQL Server的几点注意事项